Read n integers, print sum of digits for each.
Write a complete program: read the input with input() and print the result with print().
input()
print()
Input
3 123 4567 9
Output
6 22 9