k = int(input())
cnt = 0
t = 0
while True:
    for i in range(1, 9):
        ans = i * 10**t
        if t == 0:
            print(ans)
        else:
            ans-=1
            print(ans)
        cnt += 1
        if cnt ==k:
            sys.exit()
    t += 1