# POTD 4 skel
# Author: <anonymized>
# Date:10-07-2025
# Description: Digit extraction

import sys
a = int(sys.argv[1])
b = int(sys.argv[2])

if(b == 0):
    print("The 1s digit of", a, "is", a // 1 % 10)

if(b == 1):
    print("The 10s digit of", a, "is", a // 10 % 10)

if(b == 2):
    print("The 100s digit of", a, "is", a // 100 % 10)
    
if(b == 3):
    print("The 1000s digit of", a, "is", a // 1000 % 10)




