#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, b1, b2;
  scanf("%d %d %d %d", &a1, &a2, &b1, &b2);
  if ((b1 >= a2 - 1 && b1 <= (a2 + 1) * 2) ||
      (b2 >= a1 - 1 && b2 <= (a1 + 1) * 2))
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
