#include <bits/stdc++.h>
using std::cin;
using std::cout;
int main() {
  register int a, b, c, d;
  cin >> a >> b >> c >> d;
  if ((a + a + 3 > d && d + 1 >= a) || (b + b + 3 > c && c + 1 >= b))
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
