Problem1144--Tom数

1144: Tom数

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

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

Input

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

Output

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

Sample Input Copy

12345
56123
82

Sample Output Copy

15
17
10

Source/Category