~/algor $ cat problems/while-raqamlar-yigindisi-va-soni
Sum and count of digits
Easy
1000 ms
64 MB
29%
A positive integer $n$ is given. Compute the number of its digits and the sum of its digits.
Input
One integer $n$.
Output
One line with two integers separated by a space: the number of digits and the sum of digits.
Note
$1 \le n \le 2 * 10^{9}$
Examples
Input #1
1234
Output #1
4 10
Input #2
508
Output #2
3 13