#include using namespace std; int main(){ int A[4]; for(auto &x : A) cin >> x; cout << (A[0] < A[1] && A[2] > A[3] ? "YES" : "NO") << endl; }