Problem1760--三位数各位数字之和

1760: 三位数各位数字之和

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

Description

用户输入一个三位数,输出该三位数各位数字之和。

Input

输入一个三位整数 n (100 <= n <= 999)。

Output

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

Sample Input Copy

123

Sample Output Copy

6

Source/Category