# 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
    print i
    keta.times do
        print 9
    end
    puts ""

    i+=1
    if i==10
        keta+=1
        i=1
    end
    k+=1
end
