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