K = int(input())
num = 1
pls = 1
coun = 0

while num <= 1000000000000000 and coun < K:
    while (num/sum(list(map(int, list(str(num)))))) <= ((num+pls)/sum(list(map(int, list(str(num+pls)))))) and coun < K:
        print(num)
        coun = coun + 1
        num = num + pls
    num = num - pls
    pls = pls * 10
    num = num + pls