#include using namespace std; void solve() { int a, b, c, d; cin >> a >> b >> c >> d; cout << ((a < b && c > d) ? "YES" : "NO") << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }