typedef long long ll; typedef long double ld; #include using namespace std; int main() { vector a(4); for (int i = 0; i < 4; i++) { std::cin >> a[i]; } if(a[0]a[3]){ std::cout << "YES" << std::endl; }else{ std::cout << "NO" << std::endl; } }