1162: Tom数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:18 Solved:5

Description

正整数的各位数字之和被Tom称为Tom数。求输入数(<2^32)的Tom数!

Input

每行一个整数(<2^32).

Output

每行一个输出,对应该数的各位数之和.

Sample Input Copy

12345
56123
82

Sample Output Copy

15
17
10