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

    }
 else if(i-l<=0)
    {
        printf("No");

    }
    else
        printf("Yes");
           return 0;
}
