#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define MAX_MOD 1000000007 #define REP(i,n) for(long long i = 0;i < n;++i) #define LONGINF 1000000000000000000 int main() { long long h, w, n, k; cin >> h >> w >> n >> k; long long hoge = h * w; hoge %= n; if (hoge == 0) { hoge = n; } if (hoge == k) { cout << "YES" << endl; } else cout << "NO" << endl; return 0; }