h, w, n, k = map(int, input().split()) i = (h + w - 1) % n if i == k % n: print("YES") else: print("NO")