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