#include <bits/stdc++.h>
using namespace std;
bool satisfy(int minn, int maxx, int val) {
  if (minn <= val && val <= maxx) return 1;
  return 0;
}
int main() {
  int gl, gr, bl, br;
  cin >> gl >> gr >> bl >> br;
  int maxlr, maxrl, minlr, minrl;
  maxlr = 2 * (gr + 1);
  maxrl = 2 * (gl + 1);
  minlr = gr - 1;
  minrl = gl - 1;
  if (satisfy(minlr, maxlr, bl) || satisfy(minrl, maxrl, br))
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
