def dig_sum(n):
    summ = 0
    n = pow(2, n)
    while n > 0:
        summ += n % 10
        n //= 10
    return summ


print(dig_sum(1000))

7a1fc45b7b4ee3b4b51fa5c7ee0fc565f0ab8fc1
<mask token>

def dig_sum(n):
    summ = 0
    n = pow(2, n)
    while n > 0:
        summ += n % 10
        n //= 10
    return summ


<mask token>

def dig_sum(n):
    summ = 0
    n = pow(2, n)
    while n > 0:
        summ += n % 10
        n //= 10
    return summ


print(dig_sum(1000))
