Today in period 8/9 math, Jerry decided to distract Mr. Ing by writing down every single natural number in the entire known universe in ascending order (it was a very long class). He's also forgotten to put some commas, and he needs your help in determining the digit in his sequence . Could you be a dear and help Jerry out?
Input Specification
A single integer .
Output Specification
The digit in the sequence of all natural numbers.
Sample Input 1
17
Sample Output 1
3
Sample Input 2
2034525
Sample Output 2
5
Comments
Here's a helpful link if you want to better understand the math behind this problem: https://artemlos.net/docs/2014/01/MathExploration.pdf
The Booster Cushions of the Pre-pre-windsor