favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

# The sum of digits

Find the sum of digits of an integer.

#### Input

One 32-bit integer n (the number can be negative).

#### Output

Print the sum of digits for number n.

Time limit 1 second
Memory limit 128 MiB
Input example #1
321

Output example #1
6