#include #include using namespace std; int main() { uint64_t H, W, N, K; cin >> H >> W >> N >> K; cout << (((H*W) % N) == (K - 1) ? "YES" : "NO") << endl; }