#include using namespace std; int main() { long long A,B,C,D;cin>>A>>B>>C>>D;if(AD){cout<<"YES"<