{"raw_statement":[{"iden":"problem statement","content":"Takahashi has two positive integers $A$ and $B$.\nIt 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$)."},{"iden":"constraints","content":"*   $2 ≤ N ≤ 10^5$\n*   $N$ is an integer."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$"},{"iden":"sample input 1","content":"15"},{"iden":"sample output 1","content":"6\n\nWhen $A=2$ and $B=13$, the sums of their digits are $2$ and $4$, which minimizes the value in question."},{"iden":"sample input 2","content":"100000"},{"iden":"sample output 2","content":"10"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}