#include <bits/stdc++.h>
using namespace std;
bool solve(int a, int b) {
  if (b < a - 1) return false;
  if (a < (b - 1) / 2) return false;
  return true;
}
int main() {
  int al, ar, bl, br;
  cin >> al >> ar >> bl >> br;
  if (solve(al, br) || solve(ar, bl))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
