N = int(input()) S_list = [] for _ in range(N): S_list.append(input()) a = ''.join(S_list) print(a)