lab4(59)
#include <iostream>
using namespace std;
int main() {
int x, y, a, b, z;
cin>>x>>y>>a>>b;
if(y>=b) {
z = a-x;
} else {
z = a-x-1;
}
cout<<z;
}INFO
#include <iostream>
using namespace std;
int main() {
int x, y, a, b, z;
cin>>x>>y>>a>>b;
if(y>=b) {
z = a-x;
} else {
z = a-x-1;
}
cout<<z;
}