a,b,c,d=map(int,input().split()) sum=a*b if (sum-d)%c==0: print("YES") else: print("NO")