n = input()
s = [raw_input() for i in xrange(n)]
print ''.join(s)