#include <stdio.h>
int main() {
int Ia, Ib, Fa, Fb;
scanf("%d", &Ia);
scanf("%d", &Ib);
scanf("%d", &Fa);
scanf("%d", &Fb);
if(Ia==Fa && Ib==Fb) printf("0");
else if(Ia!=Fa && Ib!=Fb) printf("1");
else if(Ia!=Fa && Ib==Fb) printf("1");
else if(Ia==Fa && Ib!=Fb) printf("2");
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: