#include<stdio.h>
int main()
{
  int a,b,c,d;
  int min_A,min_B;
  scanf("%d %d %d %d",&a,&b,&c,&d);
  if(a<=b) min_A=a;
  else min_A=b;
  if(c<=d) min_B=c;
  else min_B=d;
  
  if(min_A<=min_B) print("Yes");
  else print("No");
  return 0;
}