#include #define PI 3.14159265359 using namespace std; int main() { vector v(4); for (int i = 0; i < 4; i++) { cin >> v.at(i); } bool b = false; if (v.at(0) < v.at(1)) { if (v.at(2) > v.at(3)) { b = true; } } cout << (b ? "YES" : "NO") << endl; }