arg = input() l = arg.split(" ") l = [int(x) for x in l] if ((l[0] * l[1]) - l[3]) % l[2] == 0: print("YES") else: print("NO")