#include using namespace std; int f(int x){ if(x<0)return -x; return x; } int main() { // your code goes here int x,y,x1,y1,ans=0; std::cin>>x>>y>>x1>>y1; if((x==y)&&(x1==y1)&&(x1