#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; if(X%(2*M)==Y%(2*M)||(2*M-X+1)%(2*M) == Y%(2*M)){ p("YES"); }else{ p("NO"); } return 0; }