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