#include<stdio.h>
int main()
{
	int A,B,C,D,X,Y;
	scanf("%d %d %d %d",&A,&B,&C,&D);
	if(A>C){
	X=A-C;
	}
	else X=C-A;
	if(D>B){
	Y=D-B;
	}
	else Y=B-D;
	if(X>Y){
		printf("YES\n");
	}
	else{
		printf("NO\n");
	}
	return 0;
}
