#include <bits/stdc++.h>
using namespace std;
bool check(int d, int m) {
  if (m <= 2 * (d + 1) && (m >= d - 1)) return 1;
  return 0;
}
signed main() {
  ios_base::sync_with_stdio(0);
  int l1, r1, l2, r2;
  cin >> l1 >> r1 >> l2 >> r2;
  if (check(l1, r2) || check(r1, l2)) {
    cout << "YES\n";
  } else
    cout << "NO\n";
}
