Skip to content
UPEEC

Sum of Digits

Easy#basics#math· solved by 0 · time limit 2.0 s

Print the sum of the decimal digits of nn (ignore the minus sign for negative numbers).

Input

A single integer nn.

Output

The digit sum.

Constraints

∣n∣<1018|n| < 10^{18}

Sample 1

Input

1234

Output

10

Sample 2

Input

-907

Output

16

Sign in or join free to run and submit your solution.