#include <bits/stdc++.h>
using namespace std;
long long int power(long long int x, long long int y, long long int p) {
  unsigned long long res = 1;
  x = x % p;
  if (x == 0) return 0;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
int main() {
  int t;
  t = 1;
  while (t--) {
    int al, ar, bl, br;
    bool flag1 = false, flag2 = false;
    cin >> al >> ar >> bl >> br;
    if (br >= al - 1 && 2 * al >= br - 2) flag1 = true;
    if (bl >= ar - 1 && 2 * ar >= bl - 2) flag2 = true;
    if (flag1 || flag2)
      cout << "YES";
    else
      cout << "NO";
  }
}
