#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair pi; typedef pair pl; int main() { ll H, W, N, K; cin >> H >> W >> N >> K; ll mx_num = max(H, W) - 1 + min(H, W); if (mx_num % N == K || (N == K && mx_num % K == 0)) cout << "YES" << endl; else cout << "NO" << endl; return 0; }