import math
n=int(input())
base=list(map(str,[1,2,3,4,5,6,7,8,9]))
count=0
for i in range(math.ceil(n/9)):
    tmp=[]
    for k in base:
        print(k)
        count+=1
        if count==n:
            break
        tmp.append(k+"9")
    base=tmp
