#include <bits/stdc++.h>
using namespace std;
int main() {
  int gl, gr, bl, br, l, r, a;
  scanf("%d %d %d %d", &gl, &gr, &bl, &br);
  if (gl == br || gr == bl) {
    printf("YES");
    return 0;
  } else if (gl == 1 || gr == 1) {
    if (gl == 1) {
      if (br <= 4) {
        printf("YES");
        return 0;
      }
    } else {
      if (bl <= 4) {
        printf("YES");
        return 0;
      }
    }
  } else if (gl < br && gl > 1 || (gr < bl && gr > 1)) {
    if (gl < br && gl > 1) {
      if (gl * 2 % br == 1 || gl == br - 1 || (gl - 1) * 2 + 4 >= br ||
          gl * 2 == br) {
        printf("YES");
        return 0;
      }
    }
    if (gr < bl && gr > 1) {
      if ((gr * 2) % bl == 1 || (gr == bl - 1) || ((gr - 1) * 2 + 4 >= bl) ||
          gr * 2 == bl) {
        printf("YES");
        return 0;
      }
    }
  } else if (bl == 1) {
    a = gr - bl;
    if (a < 2) {
      printf("YES");
      return 0;
    }
  } else if (br == 1) {
    a = gl - br;
    if (a < 2) {
      printf("YES");
      return 0;
    }
  } else if (gr > bl && gl > br) {
    if (gr - 1 == bl || gl - 1 == br)
      printf("YES");
    else
      printf("NO");
    return 0;
  }
  printf("NO\n");
  return 0;
}
