题目描述
Given number N, print sum of all of its digits.
Input
First Line of input contains integer T denoting number of test cases.
Next T lines contains number N
Output
For each test case, print sum of digits of number N.
Constraints
1 ≤ T ≤ 10
Number of digits in N in range [1, 10000000]
SAMPLE INPUT
2
123
56666
SAMPLE OUTPUT
6
29
输入格式
见题面
输出格式
见题面
样例输入
8
123456789
109847362
1234471646
146173847472
1222444778881
1455555555555
8888888888888
43212341242222
样例输出
45
40
38
54
58
60
104
34