#include <bits/stdc++.h>
using namespace std;

int main()
{
  int A,B,C,D,S,V;
  bool N = false;
  cin >> A >> B >> C >> D;
  while(N)
  {
    S = A-D;
    if(S<0)
    {
      cout << "NO" << endl;
      N = true;
    }
    V = C-D;
    if(V<0)
    {
      cout << "YES" << endl;
      N = true;
    }
  }
}