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
Given a non-negative integer, print the sum of its decimal digits.
A single non-negative integer n.
Print the sum of the digits of n.
0 <= n <= 10^18
1234
10
1 + 2 + 3 + 4 = 10