N = int(input()) S = [input() for _ in range(N)] print(''.join(S))