Problem1040--The sum of digits

1040: The sum of digits

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

Description

Given an integer with 4 digits, please output the sum of the digits.

Input

One integer with 4 digits 

Output

One integer which is the sum of the 4 digits

Sample Input Copy

2341

Sample Output Copy

10

Source/Category