# Arup Guha
# 4/13/2023
# Code to verify answer for COT 3100H Quiz 2 Problem 2

# Form enough of the string.
s = ""
for i in range(1, 3000):
    s = s + str(i)

# Go to the 10005th digit.
print(s[10004])
