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