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