def main():
    def f(N):
        S = 0
        tmp = N
        while tmp > 0:
            S += tmp%10
            tmp //= 10
        return N/S
    
    import sys
    input = sys.stdin.readline
    K = int(input())
    Ans = []
    for i in range(1,10):
        Ans.append(i)
    
    tmp = 0
    T = 1
    nine = 1
    while tmp < 10**15:
        N = T*10**nine + 10**nine - 1
        if f(N) <= f(N+10**nine):
            Ans.append(N)
            T += 1
        else:
            nine += 1
            T //= 10
        tmp = T*10**nine + 10**nine - 1
    print(*Ans[:K],sep = "\n")
    
    
main()