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