#Q6



x= input("Enter the base")
y= input("Enter the exponent")

"""if x > 0:
    ans = x
    for i in range(y):
        
        ans = x*ans
    print ("Answer is %d" %ans)
elif x == 1:
    ans = 1
    print ("Answer is %d" %ans)

else:
    print("Invalid Input")"""
ans = x**y
print ans
exit
