import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines H,W,N,K = map(int,read().split()) A = H + W - 1 loser = ((A-1) % N) + 1 answer = 'YES' if loser == K else 'NO' print(answer)