def fun(key):
    L = len(str(key))
    if str(key)[0] == '9':
        return 1 * pow(10, L) + key
    else:
        return pow(10, L - 1) + key
K = int(input())
n = 9
for i in range(1, K + 1):
    if i < 10:
        print(i)
    else:
        n = fun(n)
        aaa = len(str(n))
        if aaa > 10:
            print(10290)
        print(n)
