n = int(input()) s = [input() for _ in range(n)] print(*s, sep="")