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 = float("inf")
  
  A = 0
  B = N
  for i in range(N//2):
  
      A += 1
      B -= 1
  
      if A + B > N:
          break
  
      else:
  
          s_a = str(A)
          s_b = list(str(B))
  
          a = [int(i) for i in s_a]
          b = [int(i) for i in s_b]
  
          ans = min(ans, sum(a)+sum(b)
  
  print(ans)
  
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"}]