#arc127a. [arc127_a]Leading 1s
[arc127_a]Leading 1s
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.
Sample Input 1
11
Sample Output 1
4
We have . The answer is .
Sample Input 2
120
Sample Output 2
44
Sample Input 3
987654321
Sample Output 3
123456789