#include <bits/stdc++.h>
using namespace std;
int judge(int a, int b) {
  if (b < a - 1)
    return 0;
  else if (b > 2 * a + 2)
    return 0;
  else
    return 1;
}
int main() {
  int al, ar, bl, br;
  scanf("%d %d", &al, &ar);
  scanf("%d %d", &bl, &br);
  if (judge(al, br) || judge(ar, bl))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
