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