~/algor $ cat contests/round-9/D
D. Sum and count of digits
Problem D
ICPC rules
1000 ms
64 MB
A positive integer is given. Compute the number of its digits and the sum of its digits.
Input
One integer .
Output
One line with two integers separated by a space: the number of digits and the sum of digits.
Note
Examples
Input #1
1234
Output #1
4 10
Input #2
508
Output #2
3 13