#include <iostream>		//cin, cout
#include <vector>		//vector
#include <algorithm>	//sort,min,max,count
#include <string>		//string,getline, to_string
#include <cstdlib>		//abs(int)
#include <utility>		//swap, pair
#include <deque>		//deque
#include <climits>		//INT_MAX
#include <bitset>		//bitset
#include <cmath>		//sqrt, ceil. M_PI, pow, sin
#include <ios>			//fixed
#include <iomanip>		//setprecision
#include <sstream>		//stringstream

using namespace std;

int main() {

	string ans;
	string temp;
	int N;
	cin >> N;

	for (int i = 0; i < N; i++) {
		cin >> temp;
		ans = ans + temp;
	}

	cout << ans << endl;

	return 0;

}