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