#include using namespace std; int main(){ int n, m, x, y; cin >> n >> m >> x >> y; m *= 2; if(x%m == y%m) cout << "YES" << endl; else cout << "NO" << endl; /* 頭悪い bool proceed = true; while(x > m){ x -= m; proceed = !proceed; } if(!proceed) x = m-x+1; proceed = true; while(y > m){ y -= m; proceed = !proceed; } if(!proceed) y = m-y+1; if(x == y) cout << "YES" << endl; else cout << "NO" << endl; */ return 0; }