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