Sum of Digits

EasyBasics
Next
MathLoops

Given a non-negative integer, print the sum of its decimal digits.

Input

A single non-negative integer n.

Output

Print the sum of the digits of n.

Constraints

0 <= n <= 10^18

Example 1
Input
1234
Output
10

1 + 2 + 3 + 4 = 10

Hints

Sum of Digits - Easy Basics Problem | Skill Shiksha