from math import log A, B = map(int, input().split()) if abs(log(A) / A - log(B) / B) < 10 ** -10: print("Yes") else: print("No")