n = gets.chomp.to_i all = "" n.times { s = gets.chomp all += s } puts all