#00039C

koren

For given x, output the n-th decimal digit of sqrt(x).



InputThe first line contains two integers x and n (1 <= x, n <= 1 000).

OutputOutput the n-th decimal digit of sqrt(x).

Input:
2 20
Output:
0
Explanation:
Square root of 2 (with 20 digits is 1.41421356237309504880).

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.