#include using namespace std; typedef long long ll; int main(){ ll H,W,N,K; cin >> H >> W >> N >> K; if((H+W-2)%N+1==K){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }