def main(): z = ''.join(map(str, range(100))) print(z[int(input())]) if __name__ == '__main__': main()