#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair pint; typedef vector vint; typedef vector vpint; #define mp make_pair #define fi first #define se second #define all(v) (v).begin(),(v).end() #define rep(i,n) for(int i=0;i<(n);i++) #define reps(i,f,n) for(int i=(f);i<(n);i++) int main(void){ ll n, m; cin >> n >> m; ll x, y; cin >> x >> y; ll mod = 2 * m; ll numx = x % mod; ll numy = y % mod; if(numx > m) numx = 2 * m - numx + 1; else numx++; if(numy > m) numy = 2 * m - numy + 1; else numy++; if(numx == numy) printf("YES\n"); else printf("NO\n"); return 0; }