1431: 数位求和

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:13 Solved:10

Description

已知一个整数n(n<10000),请编写一个函数将这个数的每个数位上的数的和求出来,并作为函数返回值。

Input

整数n

Output

各数位的数字的和

Sample Input Copy

1234

Sample Output Copy

10