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