a,b,c,d=map(int,input().split()) total=a*b if total==c==d: print("YES") else: print("NO")