#include #include #include #include #include #include #include #include #include #include #include #include #include #define p(s) cout<<(s)<=n;i--) #define CK(n,a,b) ((a)<=(n)&&(n)<(b)) #define F first #define S second typedef long long ll; using namespace std; const int inf=1e9+7; int N, M; int X, Y; int main(){ cin>>N>>M>>X>>Y; X--; Y--; X%=(2*M); Y%=(2*M); if(M<=X) X=(M-1) - (X % M); if(M<=Y) Y=(M-1) - (Y % M); if(X==Y){ p("YES"); }else{ p("NO"); } return 0; }