K = int(input())
count = 0
for i in range(1000000000000000000000000000000000000000000000000000000000000):
    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
