def f(d) if d==1 then puts 10 else puts "9"+("0"*(d-1)) end end gets.to_i.times{ f(gets.to_i) }