#include int main() { long h, w, n, k; scanf("%ld %ld %ld %ld", &h, &w, &n, &k); puts( (((h-1)+(w-1)+1-1)%n)+1 == k ? "YES" : "NO" ); return 0; }