Recursion
Recursion-05
Recursion-06
Recursion-07
~/algor $ cat problems/rekursiya-raqamlar-soni
Number of digits
Easy
1000 ms
64 MB
24%
You are given a positive integer $n$. Using a recursive function, find how many digits $n$ has.
Recursive step: each time divide $n$ by $10$ and increase the digit count by $1$.
Input
One line with a positive integer $n$ ($1 \le n \le 10^9$).
Output
The number of digits of $n$.
Note
$1 \le n \le 10^9$
Examples
Input #1
452
Output #1
3
Input #2
1000000
Output #2
7