def func(x):
    ret = 0
    while x > 0:
        ret += x % 10
        x //= 10
    return ret

def getSn(x):
    return x / func(x)

if __name__ == '__main__':
    k = int(input())
    sn = [1]
    i = 2
    while len(sn) < k + 1:
        buf = getSn(i)
        while getSn(sn[-1]) > buf:
            sn.pop()
            if len(sn) == 0:
                break
        sn += [i]
        i += 1
        #print(sn)
    for i in range(k):
        print(sn[i])