#include using namespace std; using ll = long long; constexpr char newl = '\n'; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); array a; for (int i = 0; i < 4; i++) { cin >> a[i]; } cout << ((a[0] < a[1] && a[2] > a[3]) ? "YES" : "NO") << newl; return 0; }