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())
  
  if n % 10 == 0 and n != 10:
      print(10)
  else:
      a, b = 1, 0
      sA, sB = 0, 0
      soma = []
  
      while a <= n:
          b = n - a
  
          for i in str(a):
              sA += int(i)
          for j in str(b):
              sB += int(j)
          soma.append(sA + sB)
  
          a = a + 1
      print(min(soma))
  
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"}]