import math as m
K = int(input())
now = 1
while K > 0:
    if now < 10:
        print(now)
        K -= 1
        if now == 9:
            now += 10
        else:
            now += 1
    else:
        strNow = str(now)
        # flag = False
        # for i in range(1,len(strNow)):
        #     if strNow[i] != '9':
        #         flag = True
        #         break
        # if flag == True:
        #     continue
        print(now)
        # S = 0
        # for i in range(len(strNow)):
        #     S += int(strNow[i])
        # print(int(now / S), now)
        K -= 1
        if now < 100:
            now += 10
            if now == 109:
                now = 199
            continue
        if now < 1000:
            now += 100
            continue
        if strNow[0] == '1' and strNow[1] == '9':
            now += int(m.pow(10,len(strNow)-1)) * 9
        else:
            now += int(m.pow(10,len(strNow)-2))