Problem1689--数字之和

1689: 数字之和

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

Description

对于任意输入的整数,计算其各个数位上的数字之和。

Input

输入一个正整数N。【注意:N<= 999999】

Output

输出N的各个位上的数字之和。

Sample Input Copy

1234

Sample Output Copy

10

Source/Category