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