a = int(input()) b = int(input()) assert(b == 0 and a == 0) print(a**b)