n = int(input())
i = 0
temp = 99
count = 2
while i < n:
    if i <9:
        print(i+1)
    elif i < 18:
        print(9+10*(i-8))
    elif count >2:
        for j in range(90):
            i+=1
            if i>=n:
                break
            temp+=(10**count)
            print(temp)
        count+=1
    else:
        for j in range(99):
            i+=1
            if i>=n:
                break
            temp+=(10**count)
            print(temp)
        count+=1

    i+=1