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