#include using namespace std; typedef long long ll; typedef vector vi; typedef pair pii; #define pb push_back #define mp make_pair #define fi first #define se second int main() { int n,m,a,b,H,T; cin>>n>>m>>a>>b; int p=a/m,q=a%m; int pp=b/m,qq=b%m; if(q) { if(p%2)H=m-q+1; else H=q; } else { if(p%2)H=m; else H=1; } if(qq) { if(pp%2)T=m-qq+1; else T=qq; } else { if(pp%2)T=m; else T=1; } if(H==T)cout<<"YES"<