#! /usr/bin/env python3

k = int(input())

cnt = 0

digits = 0

while cnt < k:
    for i in range(1, 10):
        appendix = ''
        for a in range(digits):
            appendix = appendix + '9'

        print(str(i) + appendix)
        cnt += 1
        if cnt == k:
            break
        if i == 9:
            digits += 1
