#include using namespace std; int main() { unsigned long long h, w, n, k; cin >> h >> w >> n >> k; h *= w; h %= n; k %= n; if (h == k)cout << "YES\n"; else cout << "NO\n"; }