#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <iomanip>
#include <cmath>
using namespace std;
#define diff(x,y) ((x > y) ? (x - y) : (y - x))

int main() {
	string ans, str;
	int n; 
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> str;
		ans += str;
	}
	cout << ans << endl;
	return 0;
}