lib C fun strtoll(s : UInt8*, p : UInt8**, b : Int32) : Int64 end class String def to_i64 C.strtoll(self, nil, 10) end end read_line.to_i.times do x = read_line.to_i if x == 1 puts 10 else puts "9" + "0"*(x - 1) end end