#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int c1; int c2; int h1; int h2; cin >> c1 >> c2 >> h1 >> h2; int low = max(c1, c2); int high = min (h1, h2); if (low <= high) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }