h, w, n, k = map(int, input().split()) x = (h*w) % n y = k % n if x == y: print('YES') else: print('NO')