# coding: utf-8
# Your code here!

k = int(input())

count=0
nine = ""
for i in range((k//9)+1):
    for i in range(1,10):
        if(count==k):
            break
        count+=1
        print(str(i)+nine)
    nine+="9"
    