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())
  n4 = 0
  n3 = 0
  n2 = 0
  n1 = 0
  if n >= 10**4:
      n4 = n // 10**4
      n = n - n4 * 10**4
  if n >= 10**3:
      n3 = n // 10**3
      n = n - n3 * 10**3
  if n >= 10**2:
      n2 = n // 10**2
      n = n - n2 * 10**2
  if n >= 10:
      n1 = n // 10
      n = n - n1 * 10
  n0 = n
  print(n0 + n1 + n2 + n3 + n4)
  
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"}]