#include #include #include #include #include #include using namespace std; typedef long long ll; typedef vector vi; typedef vector vvi; typedef pair pii; #define INF INT_MAX/3 #define REP(i,n) for(int i=0;i>N>>M; cin>>X>>Y; bool kekka = false; int p = X % (2*M); int q = Y % (2*M); if(p <= M && q > M){ int k = 2*M - p + 1; if(k == q)kekka = true; } else if(p > M && q <= M){ int k = 2 * M - q + 1; if(k == p)kekka = true; } else{ if(p == q){ kekka = true; } } if(kekka){ cout<<"YES"<