a,b=map(int,input().split()) if pow(a,b)==pow(b,a): print("Yes") else: print("No")