#include using namespace std; #define int long long signed main(){ int h,w,n,k;cin>>h>>w>>n>>k; n%=h*w; cout<<(n==k?"YES":"NO")<