#include<bits/stdc++.h>
using namespace std;
int  main()
{	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  while(1)
  {
    int x=c-b;
    int y=a-d;
    if(x<=0)
    { 
      cout<<"Yes";
      break;
    }
    else if(y<=0)
    {
      cout<<"No";
      break;
    }
  }
}
