#include <iostream>
#include <algorithm>
#include <string>
#include <stdlib.h>
#include <vector>
#include <climits>
#include <math.h>
#include <map>
#include <set>
#include <stack>
#include <iomanip>
using namespace std; 
#define Endl '\n'
int main()
{
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    if (a>c || a>d || b>c || b>d)
    {
        cout<<"Yes";
    }
    else
        cout<<"No";
}