n = int(input()) s = "".join([input() for i in range(n)]) print(s)