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