def main(): A,B = map(int,input().split()) if pow(A,B) == pow(B,A): print("Yes") else: print("No") if __name__ == '__main__': main()