import math
K = int(input())

s = []
digit = math.ceil(K / 9)
ans = 0
cnt = 0
for i in range(digit):
    a = str(10**(i)-1) if i != 0 else ''
    for j in range(1, 10):
        if cnt == K:
            break
        ans = str(j)+a
        print(ans)
        cnt += 1
