#include <stdio.h>
int main()
{
   int n=0,i,j,k,l;
 scanf("%d %d %d %d",&i,&j,&k,&l);
 if(i<k)
    n++;
 else if(j>l)
    n++;
 if(n==0)
    printf("Yes");
 else
    printf("No");
           return 0;
}
