#include<stdio.h>
 
int main(void){
  int a,b,c,d;
  int x,y;
  scanf("%d",&a);scanf("%d",&b);scanf("%d",&c);scanf("%d",&d);
  for(int i=0;i<100;i++){
    x=c-b;
  if(x<=0){
    puts("Yes");
  break;}
    y=a-d;
  if(y<=0){
    puts("No");
  break;}}
  return 0;
}