N = int(input()) S = [input().rstrip() for i in range(N)] print("".join(S))