H, W, N, K = map(int, input().split()) m = (H * W) % N if m == K % N: print('YES') else: print('NO')