A, B = [int(x) for x in input().split()] if A**B == B**A: print("Yes") else: print("No")