#include using namespace std; #define int long long signed main(){ int A,B,C,D; cin>>A>>B>>C>>D; if(A == C && B == D) cout<<0<