C = ''.join(map(str,range(100))) print(C[int(input())])