def main(): N = int(input()) S = ''.join([input() for _ in [0] * N]) print(S) main()