Count Digits
Easymathimplementation1s limit· 256 MB
Set by Raj
Count Digits
Easy1s limit256 MB
Read a positive integer n and print the number of digits in it.
Input Format
A single line containing one positive integer n.
Output Format
A single integer — the number of digits in n.
Constraints
1 <= n <= 10^9
Sample
Input
12345
Output
5
Explanation
The number 12345 contains 5 digits.
Loading editor…
Run uses this input. Submit always judges the hidden tests.