s=set()
for i in range(1,10):
    s.add(i)
for i in range(17):
    k=str(10**(i+1) - 1)
    for j in range(1,(i+1)*10):
        s.add(int(str(j)+k))
ar=sorted(s)

k=int(input())
for i in range(k):
    print(ar[i])
