"".join(map(str,list(range(1,101))))[int(input())-1]