#include using namespace std; int main(){ int h,w; long long int n,k,s; cin>>h>>w>>n>>k; s=(h*w)%n; if(s==0) s+=n; if(s==k) cout<<"YES"<