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