n = int(input())
k = int(input())

print(n**k)

# pow(n, k)

#-------------------------------------------------------------------------------------------

a = int(input())
for i in range(1, a) :
    a = i*a
    i+=1
print(a)
