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