#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int al, ar, bl, br;
  cin >> al >> ar >> bl >> br;
  if (bl >= (ar - 1) && bl <= (2 * ar + 2)) {
    cout << "YES";
    return 0;
  }
  if (br >= (al - 1) && br <= (2 * al + 2)) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
  return 0;
}
