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