K = int(input().strip())

def sums(n):
    hoge = str(n)
    SUM = 0
    for i in hoge:
        SUM = SUM + int(i)
    return SUM

def lencheck(n):
    hoge = str(n)
    return(len(hoge))


tmp = 1
l = 1
p = 1
print(1)
for i in range(1,K+1):
    if l < lencheck(tmp):
        l = lencheck(tmp)
        tmp = tmp - p
        p = 10**(l-1)
    tmp = tmp + p
    
    print(tmp)




