n = gets.chomp.to_i
array = []
for i in 1..n
    hoge = gets.chomp
    array << hoge
end

puts array.join("")