int abs(int x){return x<0?-x:x;}main(){int a,b,c,d;scanf("%d%d%d%d",&a,&b,&c,&d);printf("%s",abs(a-c)==2&&abs(b-d)==2?"Yes":"No");}