k = int(input())
i = 1
a = 0
b = 0
c = 0
cnt = 0

for i in range(10**15):
    for j in str(i+1):
        a += int(j)
    for l in str(i+2):
        b += int(l)
    for g in str(i+11):
        c += int(g)
    if (i+1) * b <= (i+2) * a and (i+1) * c <= (i+11) * a:
        print(i+1)
        cnt += 1
        a = 0
        b = 0
        c = 0
        if cnt == k:
            break
    else:
        a = 0
        b = 0
        c = 0





