n=gets.to_i n.times do d=gets.to_i if d==1 puts 10 else puts "9"+"0"*(d-1) end end