Row of numbers#10681

Row of numbers

1 second
128 megabytes
Very easy

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 ).

Input

One integer n~(1 \le n \le 10000) — the position of the digit you need to print.

Output

Print the -th digit of the line.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading