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