#include <iostream>
#include <cmath>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
auto ab = abs(a - b);
auto cd = abs(c - d);
auto l = min(a, min(b, min(c, d)));
auto r = max(a, max(b, max(c, d)));
auto ad = abs(l - r);
puts(ad <= ab + cd ? "YES" : "NO");
}