# -*- coding: utf-8 -*-
# 整数の入力
k = int(input())

a = k // 9
b = k % 9

if a == 0:
    for i in range(0,b):
        print(str(i+1))
else:
    for i in range(0,a):
        s = "9" * i
        for j in range(1,10):
            print(str(j)+s)
    s = s + "9"
    for i in range(0,b):
        print(str(i+1)+s)