N = gets.to_i s = "" N.times {s << gets.chomp} puts s