#T212. digit函数

digit函数

Description

Define a function digit(n, k) in the program that can extract the k-th digit from the right of the integer n.

Input Format

Positive integers n and k.

Output Format

A single digit.

31859 3

8