2 10
1024
def power(b, e): if e == 0: return 1 return b * power(b, e - 1) b, e = map(int, input().split()) print(power(b, e))