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