#include <bits/stdc++.h>
using namespace std;
int al, ar, bl, br;
bool ok(int g, int b) {
  if (b < g - 1) return false;
  if (b > (g + 1) * 2) return false;
  return true;
}
void init() { cin >> al >> ar >> bl >> br; }
void solve() {
  if (ok(al, br) || ok(ar, bl))
    cout << "YES\n";
  else
    cout << "NO\n";
}
int main() {
  init();
  solve();
}
