# your code goes here N = int(input()) S = [input() for i in range(N)] print(''.join(S))