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