#include using namespace std; typedef long long ll; int main() { vector a(4); for (int i = 0; i < 4; ++i) cin >> a[i]; if (a[1] > a[0] && a[2] > a[3]) puts("YES"); else puts("NO"); return 0; }