// Sky's the limit :) #include using namespace std; #define int long long signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int T = 1; // cin >> T; while (T--) { int a, b, c, d; cin >> a >> b >> c >> d; if (a < b && c > d) cout << "YES\n"; else cout << "NO\n"; } return 0; }