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