#coding:utf-8
K = int(input())
ten = K // 10
sur = K % 10
for i in range(ten+1):
    if i == ten:
        for j in range(1, sur+1):
            moji = "{}".format(j) + "9" * i
            print(moji)
    else:
        for j in range(1,10):
            moji = "{}".format(j) + "9" * i
            print(moji)
