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