//Normal #define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; void print(auto a){ cout << a; } void prints(auto a){ cout << a << " "; } void prints(){ cout << " "; } void printl(auto a){ cout << a << endl; } void printl(){ cout << endl; } void fix(int n){ cout << fixed << setprecision(n); } int main(){ int A1, A2, A3, A4; cin >> A1 >> A2 >> A3 >> A4; A1 < A2 and A3 > A4 ? printl("YES") : printl("NO"); return 0; }