# -*- coding: utf-8 -*- n = int(input()) s = [0] * n for i in range(n): s[i] = input() s = "".join(s) print(s)