#include using namespace std; int main(){ int N,H; cin>>N>>H; int temp; mapmp; mapnp; for(int i=0;i>temp; if(temp<0) temp*=-1; if(temp==1) continue; if(temp==0){ cout<<"YES"<first<<" "<second<first)] < itr->second){ cout<<"NO"<