#!/usr/bin/env python N = int(input()) indat = [] for i in range(N): indat.append(input()) ans = ''.join(indat) print(ans)