Problems
#858
~/algor $ cat problems/AqDQOvX0FXb8
A digit of the endless line
Medium
1000 ms
64 MB
59%
All positive integers are written one after another in increasing order with no spaces: 123456789101112131415…. Find digit number of this line (digits are numbered from ).
Input
One positive integer .
Output
One digit — digit number of the line.
Note
Examples
Input #1
15
Output #1
2
Input #2
11
Output #2
0