#include <bits/stdc++.h>
using namespace std;
int main() {
  int al, ar, bl, br;
  cin >> al >> ar >> bl >> br;
  cout << ((br <= (al + 1) * 2 && br >= al - 1 ||
            bl <= (ar + 1) * 2 && bl >= ar - 1)
               ? "YES"
               : "NO");
  return 0;
}
