13122: 求三位正整数各位数字和

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:0

Description

输入一个三位正整数,求该正整数各位上的数字之和

Input

输入一个三位正整数

Output

输出和

Sample Input Copy

123
567

Sample Output Copy

6
18

HINT

同步训练1-4.1