#include #define rep(i, n) for (ll i = 0; i < n; ++i) typedef long long ll; using namespace std; const int INF = 1e9; int main() { int a[4]; rep(i, 4) cin >> a[i]; if (a[0] < a[1] && a[2] > a[3]) cout << "YES"; else cout << "NO"; cout << endl; return 0; }