c="".join([str(i) for i in range(100)]) print(c[int(input())])