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