n = int(input())

for i in range(n):
    if i < 9:
        print(i+1)
    else:
        for j in range(100):
            temp = j+1
            if i//(9*temp) == 0:
                break
        print(10**j*(i-9*j+2)-1)