s = '.' for x in range(1, 100): s += str(x) print(s[int(input())])