import sys
K = int(input())
count = 0
nine = ""

arr = [i for i in range(1,10)]
arr_sunuke = [i for i in range(1,10)]
for k in range(13):
    for i in range(1,10):
        for j in range(10):
            arr.append(int(str(i)+str(j)+nine))
            arr_sunuke.append(i + j + k*9)
    nine = nine + str(9)


arr_sunuke2 = [arr[i]/arr_sunuke[i] for i in range(len(arr))]

ans = []
tmp = 100000000000000
for i in range(len(arr)-1, -1, -1):
    if arr_sunuke2[i] <= tmp:
        ans.append(arr[i])
        tmp = arr_sunuke2[i]

ans = ans[::-1]
for i in range(K):
    print(ans[i])