#include using lint = long long; void solve() { lint h, w, n, k; std::cin >> h >> w >> n >> k; --k; std::cout << ((h + w - 2) % n == k ? "YES" : "NO") << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }