h,w,n,k=map(int,input().split()) m= h*w % n if m==0: m=n if m ==k: print("YES") else: print("NO")