a,b=map(int,input().split()) # print(["No","Yes"][a**b==b**a]) print(["No","Yes"][a==b])