#include using namespace std; int main(){ int n, m, x, y; cin >> n >> m >> x >> y; x %= m*2; y %= m*2; if(x > m) x = 2*m + 1 - x; if(y > m) y = 2*m + 1 - y; if(x == y) 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; }