k = int(input())

l = []
for i in range(17):
    ten = 10**i
    for j in range(2,11):
        a = ten
        b = j
        n = a*b-1
        s = sum(map(int,str(n)))
        l.append([s,n])
l.sort()

for i in range(k):
    print(l[i][1])
