def power(a, b):
    def 섹스(c, d):
        if d==0:
            return 1
        if d==1:
            return c
        return 섹스(a*c,d-1)
    return 섹스(a,b)