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