a = int(input()) b = int(input()) print(pow(a, b))