# POTD 4 skel
# Author: <anonymized>
# Date: 10/8/25
# Description: Extracts digit of first argument from specified place 

import sys
n = int(sys.argv[1])
k = int(sys.argv[2])

shifted = n // (10**k)
digit = shifted % 10

print("The", str(10**k) + "s digit of", n, "is", digit)