A = int(input()) B = int(input()) alpha = A ** B print(alpha)