#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; if(M == 1)kekka = true; int p = X % (2*M); int q = Y % (2*M); if(p <= M && (q > M || q == 0)){ int k = 2*M - p + 1; if(k%(2*M) == q)kekka = true; } else if((p > M || p==0) && q <= M){ int k = 2 * M - q + 1; if(k%(2*M) == p)kekka = true; } else{ if(p == q){ kekka = true; } } if(kekka){ cout<<"YES"<