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