All integers starting with are written in one line . Your task is to print the -th digit of this string (digits are numbered starting with ).
One integer n~(1 \le n \le 10000) — the position of the digit you need to print.
Print the -th digit of the line.
Example 1
Example 2