K = int(input())
ans = [1,2,3,4,5,6,7,8]
num = 9
while(len(ans)<K):
    if str(num)[-1]=="9":
        if str(num)[1:].count("9")==len(str(num)[1:]):
            ans.append(num)
    num += 1

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