#include #include #include #include #include #include #include #include #include #include // #include #include #define int long long #define inf 1000000007 #define pa pair #define ll long long #define pal pair #define ppa pair #define mp make_pair #define EPS (1e-10) #define equals(a,b) (fabs((a)-(b))0) return acos(0); else if(fabs(a.x)0) return 0.0; else if(a.y>0) return acos(a.x/a.absv()); else return 2*acos(0)+acos(-a.x/a.absv()); } double dot(Vector a,Vector b){ return a.x*b.x+a.y*b.y; } double cross(Vector a,Vector b){ return a.x*b.y-a.y*b.x; } //----------------kokomade temple------------ int x,y,n,m; signed main(){ cin>>n>>m>>x>>y; x %= (2*m); y %= (2*m); if(x==y || x+y==m+1 ){ cout<<"YES"; } else cout<<"NO"; cout<