N = int(input()) S = [] for i in range(N) : s = input() S.append(s) ans = ''.join(S) print(ans)