1085 各位数字和


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

求每个整数的各位数字和。

Input

一大堆以空格或回车隔开的整数P( 0 ≤ P ),P可能超长,达到100位之多。

Output

输出每个整数的各位数字和。每个和数输出后要换行。

Sample

Input

12345
56123
82

Output

15
17
10

Comments

There are no comments at the moment.