atcoder#ARC127A. [ARC127A] Leading 1s
[ARC127A] Leading 1s
Score : points
Problem Statement
For an integer , let be the number of leading ones in the decimal notation of . For example, we have .
Given an integer , find .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
11
4
We have . The answer is .
120
44
987654321
123456789