''' What is the sum of the digits of the number 2^1000 ? '''

stri = str(2 ** 1000)
total = 0
for i in xrange(len(stri)):
  total += ord(stri[i]) - ord('0')
print total