output_description: Print the minimum possible value of "the sum of the digits of A" plus "the sum
  of the digits of B".
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
attempt: n = int(input())
  ans = 0
  lis = []
  for i in range(1, n):
      r = n - i
      ti = list(str(i))
      tr = list(str(r))
      for k in range(len(ti)):
          ti[k] = int(ti[k])
      for k in range(len(tr)):
          tr[k] = int(tr[k])
      lis.append(sum(ti) + sum(tr))
  print(min(lis))
  
problem_description: Statement
  
  Takahashi has two positive integers A and B.
  
  It is known that A plus B equals N. Find the minimum possible value of "the
  sum of the digits of A" plus "the sum of the digits of B" (in base 10).
samples: [{"input": "15", "output": "6\n    \n\nWhen A=2 and B=13, the sums of their digits are 2 and 4, which minimizes the\nvalue in question.\n\n* * *"}, {"input": "100000", "output": "10"}]