# -*- coding: utf-8 -*-

K = int(input())
i = 0
g = 0
while True:
    i += 1
    if g == K:
        break
    if i <= 9:
        print(i)
        g += 1
        # pass
    else:
        l1 = i% 10
        keta = i // 10
        if l1 != 0 :
            i9 = int('9' * keta)
            print(int(str(l1)+str(i9)))
            g += 1
