#include <bits/stdc++.h>
using namespace std;
int al, ar, bl, br;
int main() {
  cin >> al >> ar >> bl >> br;
  if ((al * 2 + 3 > br && br + 1 >= al) || (ar * 2 + 3 > bl && bl + 1 >= ar))
    cout << "YES";
  else
    cout << "NO";
}
