#include using namespace std; using ll = long long; int main(){ ll h, w, n, k; cin >> h >> w >> n >> k; k--; if((h+w-2)%n == k) cout << "YES"; else cout << "NO"; cout << endl; return 0; }