N=int(input())
t=""
for i in range(N):
    S=input()
    t+=S
print(t)