import math a, b = map(int,input().split()) if abs(a * math.log(b) - b * math.log(a)) <= 10 ** (-14): print("Yes") else: print("No")