#include using namespace std; int main(){ int h,w,n,k;cin>>h>>w>>n>>k; cout << (k==(h+w-1)%n?"YES":"NO") << endl; }