Count the Digits of N
Count how many digits a number has by peeling one at a time.
Input format
A single line with one integer N (N >= 0).
Output format
Print how many decimal digits N has. The number 0 has 1 digit.
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
0Expected output
1Example 2
Input
7Expected output
1