#52404: Python


rumm2859@gmail.com (青)


a, b = map(int, input().split())

print(f"{a}^{b} = {a**b}")