#include <iostream>

using namespace std;

int main()
{
    int a,b,c,d;
    cin >>a>>b>>c>>d;
    if  (b>c&&d<a)
    {
        cout << "Yes"<<endl;

    }
    else if (a>c&&d<b)
    {
        cout << "Yes"<<endl;
    }
    else if (a-b>c-d)
    {
        cout<< "Yes"<<endl;

    }
    else
    {
        cout << "No"<<endl;
    }
    return 0;
}
