a,b,n,k=map(int,input().split()) total=(a*b)%n if n==k: if total==0: print("YES") else: print("NO") else: if total==k: print("YES") else: print("NO")