#include <bits/stdc++.h>
using namespace std;
int main() {
  int l1, r1, l2, r2;
  while (scanf("%d%d%d%d", &l1, &r1, &l2, &r2) != EOF) {
    if (r2 >= (l1 - 1) && r2 <= 2 * (l1 + 1))
      printf("YES\n");
    else if (l2 >= (r1 - 1) && l2 <= 2 * (r1 + 1))
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
