13201 - 求整数n各个位上的数字之和
Time Limit : 1 秒
Memory Limit : 128 MB
求正整数n各个位上的数字之和,例如:当n为123时,则输出的结果为 1+2+3 = 6。
Input
正整数n(1<=n<=10,000,000)
Output
正整数n的各个位上的数字之和
Examples
Input
123
Output
6