#include<stdio.h>
int main()
{
    int a,b,c,d,k,e;
    scanf("%d %d %d %d", &a, &b, &c, &d);
    k = a+b;
    e = c+d;
    if(k>e)
    {
        printf("Yes");
    }
    else
        printf("No");
}
