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