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