#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef unsigned long long ull; const ll MOD = 1000000007; #define rep(i,n) for(int i=0;i=0;i--) #define all(x) (x).begin(),(x).end() int main() { ll H, W, N, K; cin >> H >> W >> N >> K; if ((H + W - 1) % N == K % N) cout << "YES" << endl; else cout << "NO" << endl; return 0; }