# coding: utf-8
# Your code here!
n = int(input())
s = ''
for i in range(n):
    s = s + input()
print(s)