#t336. digit 函数
digit 函数
Background
Special for beginners, ^_^
digit Function
Problem Description
Define a function in the program that extracts the -th digit of the integer counting from the right.
Input Format
A positive integer and an integer .
Output Format
The value of .
Sample Input
31859 3
Sample Output
8
Constraints
1s, 1024KiB for each test case.