#include <bits/stdc++.h>
using namespace std;
int al, br, bl, ar;
inline void read() {
  cin >> al >> ar;
  cin >> bl >> br;
}
inline int check(int a, int b) {
  int maxx = (a + 1) << 1;
  int minn = a - 1;
  return (b >= minn && b <= maxx);
}
int main() {
  read();
  int ret = 0;
  ret |= check(al, br);
  ret |= check(ar, bl);
  if (ret)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
