#include using namespace std; int main(){ int n, m, x, y; cin >> n >> m >> x >> y; 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; }