Bob is writing a program that solves the following problem:
You are given the numbers to display the infinite sequence of numbers . Bob has made a mistake, he namely forgot to draw a space for the division between the numbers, resulting in a long line of numbers. In order not to correct the mistake, Bob decided to find out how to find the digit in the formed line (numbering of digits begins with one).
Bob could not find a good solution, so he asks you for help.
Input format
Output format
Print the digit for each test.
Constraints
In the first case, the infinite sequence of numbers for is --> . The long line is .
digit is 2
In the second case, the infinite sequence of numbers for is --> . The long line is .
digit is 7