import math A, B = map(int, input().split()) a = A * math.log(B) b = B * math.log(A) if a == b: print("Yes") else: print("No")