import sys readline=sys.stdin.readline from collections import Counter N=int(readline()) S=[readline().rstrip() for i in range(N)] print(*S,sep="")