N = int(input()) S = [] for n in range(N): S.append(input()) concat = "" for s in S: concat += s print(concat)