from math import log a, b = [int(x) for x in input().split()] print("Yes" if a * log(b) == b * log(a) else "No")