K = int(input())
count = 0
for i in range(1000000000000000):
    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 != 0 and i < 10 or tmp[-1:] == "9"):
            print(i)
            count += 1
    except:
        print("zero")
