a,b = map(int,input().split()) if a**b == b**a: print("Yes") else: print("No")