#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef vectorvs; typedef vectorvi; typedef vectorvvi; typedef pairpii; typedef long long ll; typedef pairpll; #define rrep(i,x,n) for(int i=(x);i<(n);++i) #define rep(i,x) rrep(i,0,(x)) #define fi first #define se second #define each(i,c) for(typeof((c).begin())i=(c).begin();i!=(c).end();++i) #define all(c) (c).begin(),(c).end() #define rall(c) (c).rbegin(),(c).rend() #define pb push_back int main(){ ll h,w,n,k; cin>>h>>w>>n>>k; ll val=h*w; val=(val%n?val%n:n); if(val=k)cout<<"YES"<