def digitsum(n):
    s = str(n)
    array = list(map(int, s))
    return sum(array)

def list_to_num(l):
    s = 0
    for i in range(len(l)):
        s += l[i]*pow(10,i)
    return s



k = int(input())

def func(n):
    if n/digitsum(n) == 1:
        return n
    else:
        s = str(n)
        array = list(map(int, s))[::-1]
        if len(list(set(array)))==1 and list(set(array))[0] == 9:
            return pow(10,len(array))+9
        else:
            for i in range(len(array)):
                if int(i) != 9:
                    array[0] = 9
                    break
            return list_to_num(array)


for i in range(1,k+1):
    print(func(i))