#include #include void solve() { std::vector xs(4); for (auto& x : xs) std::cin >> x; std::cout << (xs[0] < xs[1] && xs[2] > xs[3] ? "YES" : "NO") << "\n"; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }