#include int main(void){ using namespace std; int a1,a2,a3,a4; cin >> a1 >> a2 >> a3 >> a4; if(a1a4) cout << "YES"; else cout << "NO"; cout << endl; }