#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int al, ar, bl, br;
  scanf("%d %d %d %d", &al, &ar, &bl, &br);
  printf("%s\n", ((double)br / (double)(al + 1) <= 2 && br >= al - 1) ||
                         ((double)bl / (double)(ar + 1) <= 2 && bl >= ar - 1)
                     ? "YES"
                     : "NO");
  return EXIT_SUCCESS;
}
