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