Problem AJ: 求各位数之和

Problem AJ: 求各位数之和

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

SubmitProblemList

Description

输入一个四位数数n,将n每个位上的数进行求和。

Input

输入仅一行,一个整数n。

Output

一个整数,经过上述过程后得到的结果。

Sample Input Copy

1234

Sample Output Copy

10