A, B = map(int, input().split()) if A <= 100 and B <= 100: print("Yes") if A ** B == B ** A else print("No") else: print("Yes") if A == B else print("No")