#include <bits/stdc++.h>
using namespace std;
struct Node {
  long long val, pos;
};
vector<long long> v;
map<long long, long long> mp;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long gl, gr, bl, br;
  cin >> gl >> gr >> bl >> br;
  if ((bl >= gr - 1 && bl <= 2 * (gr - 1) + 4) ||
      (br >= gl - 1 && br <= 2 * (gl - 1) + 4)) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
