#include <stdio.h>
//a atac taka
//b forca taka
//atac aoki
//forca aoki
int main(){
    int a,b,c,d;
    int saude1,saude2;
    int taka=a,aoki=c;

    scanf("%d %d %d %d",&a,&b,&c,&d);

    while(taka>0 && aoki>0){
        aoki = c - b;
        taka = d - a;
        break;


    }
    if(taka>0){
        printf("Yes\n");
    }if(aoki>0) {
        printf("No\n");
    }






    return 0;
}
