K = int(input())

if K < 10:
    for i in range(1,K+1):
        print(i)
else:
    for i in range(1,10):
        print(i)
    count = 9
    while True:
        for i in range(1,16):
            for j in range(1,10):
                print(int(str(j)+"9"*i))
                count += 1
                if count >= K: exit()
