//MD. HASNAIN ALI (UNSOLVED)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define MAX(a,b) (a>b? a:b)
#define SWAP(a,b) {       \
                    a=a+b;\
                    b=a-b;\
                    a=a-b; }
#define lli long long int
#define lld long long double


int main ()
{
    int a,b,c,d;

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

    a=a-b;
    c=c-d;

    if(c<d) printf("NO\n");

    else printf("Yes\n");



    return 0;

}
