K = int(input())
# count = 0
# for i in range(100000000000000):
#     if(count == K):
#         break
#     num = 0
#     try:
#         tmp = str(i)
#         for j in tmp:
#             num += int(j)
#         # print("n:{},  s:{}, ans ={}".format(i,num,int(i) / num))
#         if(i < 10 or tmp[1:] == "9" * (len(tmp)-1)):
#             if(i != 0):
#                 print(i)
#                 # print("n:{},  s:{}, ans ={}".format(i, num, int(i) / num))
#                 count += 1
#     except:
#         continue
# # ans = [i for i in range(10)]
count = 0
flag = False
for i in range(9):
    if(count == K):
        flag = True
        break
    print(i+1)
    count += 1
nins = 9
bi = 10
if(flag == False):
    while True:
        for i in range(9):
            if(count == K):
                flag = True
                break
            print(nins + (i+1) * bi)
            count += 1
        if(flag == True):
            break
        # print(count)
        nins = str(nins) + "9"
        nins = int(nins)
        bi = str(bi) + "0"
        bi = int(bi)
