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