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