#include #define p(s) cout<<(s)<> N >> M >> X >> Y; X%=2*M; Y%=2*M; if((X==Y)||(X+Y==2*M+1)) p("YES"); else p("NO"); return 0; }