#include #include #include #include #include #include #include #include #define REP(i,k,n) for(int i=k;i P; int main() { int h,w,n,k; cin >> h >> w >> n >> k; int res = (h*w) % n; if(res == 0) res += n; if(res == k) cout << "YES" << endl; else cout << "NO" << endl; return 0; }