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