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