#include #include #include #include #include #include #include #include #include #include #include #include typedef unsigned long long ULLONG; typedef long long LLONG; static const LLONG MOD_NUM = 1000000007;//998244353; template static void get(_T& a) { std::cin >> a; } template static void get(_T& a, _T& b) { std::cin >> a >> b; } template static void get(_T& a, _T& b, _T& c) { std::cin >> a >> b >> c; } template static void getint(_T& a) { if (sizeof(_T) > sizeof(int)) { scanf("%lld", &a); } else { scanf("%d", &a); } } static void exec(); int main() { exec(); fflush(stdout); return 0; } static void exec() { int a, b, c, d; get(a, b); get(c, d); const char* ans = "NO\n"; if (a < b && c > d) ans = "YES\n"; printf(ans); }