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