b = int(input("b ?")) n = int(input("n ?")) p = 1; for i in range(1, n+1): p *= b print (b, "^", n, "=", p)