Problem3091--数位之和

3091: 数位之和

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

Description

输入一个整数n,输出n的各个位之和
例如
输入:123 输出:6
输入:99   输出: 18

Input

输入一个整数n

Output

输出一个整数,表示各个位之和

Sample Input Copy

657

Sample Output Copy

18

Source/Category