N = input()

i = 0
S = []
a = str()
for i in range(int(N)):
    s = input()
    S.append(s)
    a += S[i]
print(a)