#include <bits/stdc++.h>
int main(void) {
  int a, b, c, d;
  scanf("%d%d%d%d", &a, &b, &c, &d);
  if ((abs(a - d) <= 1) || (d >= a && d <= a * 2 + 2) || (abs(b - c) <= 1) ||
      (c > b && c <= b * 2 + 2))
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
