Easymathloops
Sum of Digits
Time limit 2 s · Memory 64 MB
Statement
You are given a non-negative integer n. Print the sum of its digits.
Constraints
0 ≤ n ≤ 10^18
Examples
Input 1
1234
Output 1
10
Input 2
0
Output 2
0
Time limit 2 s · Memory 64 MB
You are given a non-negative integer n. Print the sum of its digits.
0 ≤ n ≤ 10^18
1234
10
0
0