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