#include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     cout.tie(NULL);     int gl, bl, br, gr;     cin >> gl >> gr >> bl >> br;     if (br <= (gl + 1) * 2 && br >= gl - 1) {       cout <<  YES ;       return 0;     }     if (bl <= (gr + 1) * 2 && bl >= gr - 1) {       cout <<  YES ;       return 0;     }     cout <<  NO ;   }   