#include <bits/stdc++.h>
using namespace std;
int main() {
  long long gl, gr, bl, br;
  while (cin >> gl >> gr >> bl >> br) {
    long long b1 = gl - 1;
    bool fl = false;
    if (br >= b1 && br <= ((b1 + 2) * 2)) fl = true;
    b1 = gr - 1;
    if (bl >= b1 && bl <= (b1 + 2) * 2) fl = true;
    if (fl == true)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
