import strutils, sequtils var H, W, N, K: int (H, W, N, K) = readLine(stdin).split.map parseInt echo if (H * W - 1) mod N == K - 1: "YES" else: "NO"