# No.597 concat n = int(input()) s = [input() for i in range(n)] answer = '' for i in s: answer += i print(answer)