N = int(input()) for i in range(1, N): A = A + input() print(str(A) + "\n")