#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7, INF = 1e18, mx = 1e6 + 5, mn = 100;
int testCase = 1, cas = 0;
int main() {
  ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  while (testCase--) {
    int al, ar, bl, br;
    cin >> al >> ar >> bl >> br;
    int ok = 0;
    if ((br >= (al - 1)) && (br <= (al * 2) + 2))
      ok = 1;
    else if ((bl >= (ar - 1)) && (bl <= (ar * 2) + 2))
      ok = 1;
    ok == 1 ? cout << "YES" : cout << "NO";
    cout << endl;
  }
  return 0;
}
