# https://atcoder.jp/contests/abc101/tasks/arc099_b


K = gets.to_i
if K<=9
    (1..K).each do |i|
        puts i
    end
    exit
end

(1..9).each do |i|
    puts i
end
k=9
i=1
keta=1
while k<K
    #p "#{keta},#{i}"
    if i<keta*10
        print i
        i+=1
        keta.times do
            print 9
        end
        if i==keta*10
            i+=9
        end       
    else
        print i
        keta.times do
            print 9
        end       
        if i%9==0
            keta+=1
            i=10
        else
            i+=10
        end
    end
    puts ""
    k+=1
end
