list_9 = [1,2,3,4,5,6,7,8,9,19,29,39,49,59,69,79,89]
for gcounter in range(2,20):
    for i in range(1,10):
        a = i*10**gcounter-1
        list_9.append(a)
    for i in range(1,10):
        a = i*10**gcounter-1+10**(gcounter+1)
        list_9.append(a)
list_9.sort()

K = int(input())
for i in range(K):
    print(list_9[i])