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