Sum of digits
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
You are given a number . You have to find the sum of digits of .
Input
The first line contains the number of test cases . Each of the next lines contains the number which sum of digits you have to calculate.
Output
Output lines containing the sum of digits of the numbers.
Examples
Input #1
Answer #1
Submissions 936
Acceptance rate 44%