#include<stdio.h>

int main()
{
        int A,B,C,D;
        
        scanf("%d %d %d %d",&A,&B,&C,&D);
        
        if(A<=C||A<=D||B<=C||B<=D){ 
        printf("No\n");}
        else{ printf("Yes\n");}
       
        
            return 0;
}