q=[]
vis=set() 
q=[i for i in range(1,10)]
nums=[]
while q:
   # nums.append(t)
    t=q.pop(0)
    nums.append(t)
    if not t*10+9 in vis  and t*10+9<=10**15:
        q.append(t*10+9)
        vis.add(t*10+9)
nums.sort()
k=int(input())
for i in range(k):
    print(nums[i])