#!/usr/bin/env python
# -*- coding:utf-8 -*-

K = int(input())

def digit(i):
    if i>0:
        return digit(i//10)+[i%10]
    else:
        return []
F=0
N=0
d=0

def func(F,d,N):
    for i in range(1,10):
        n = N+i*(10**d)
        Sn = sum(digit(n))
        X = N+9*(10**d)
        SX = sum(digit(N+9*(10**d)))
        #print(n,Sn,X,SX)
        #if ((n/Sn)<=(X/SX)):
        print(n)
        F=F+1
        if F==K:
            exit()

    N=N+9*(10**d)
    d=d+1
    return F,d,N 


while True:
    F,d,N=func(F,d,N)