13201 - 求整数n各个位上的数字之和

求正整数n各个位上的数字之和,例如:当n为123时,则输出的结果为 1+2+3 = 6。

Input

正整数n(1<=n<=10,000,000)

Output

正整数n的各个位上的数字之和

Examples

Input

123

Output

6
Time Limit 1 second
Memory Limit 128 MB
Discuss 题解 Stats
上一题 下一题