#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)n; i++)
#define all(x) (x).begin(), (x).end()
#define unique(x) x.erase(unique(x.begin(), x.end()), x.end());

int main() {
  int A, B, C, D;
  int cnt = 0;
  if (A - C >= 0) cnt++;
  if (D - B < 0) cnt++;

  if (cnt > 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}