def champernowne(): count = 1 while True: put = str(count) for p in put: yield p count+=1 D = int(input()) champer = champernowne() for i in range(D - 1): next(champer) print(next(champer))