#include #include using namespace std; int A,B,C,D; main() { cin>>A>>B>>C>>D; cout<<(A==C||B==D||(long)abs(A-C)+abs(B-D)<=3?1:2)<