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: def getinputdata():
  
      array_result = []
  
      data = input()
  
      array_result.append(data.split(" "))
  
      flg = 1
  
      try:
  
          while flg:
  
              data = input()
  
              if data != "":
  
                  array_result.append(data.split(" "))
  
              else:
  
                  flg = 0
      finally:
  
          return array_result
  
  
  arr_data = getinputdata()
  
  n = int(arr_data[0][0])
  
  cnt = 1
  
  mindata = float("inf")
  
  while cnt < n:
  
      mysum = 0
  
      for v in str(cnt):
  
          mysum += int(v)
  
      for v in str(n - cnt):
  
          mysum += int(v)
  
      mindata = min(mindata, mysum)
  
      cnt += 1
  
  
  print(mindata)
  
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"}]