n=gets.to_i s='' for i in 1..n;s+=gets.chop;end puts s