# Problem Statement: Lexicographically Smallest Concatenation
You are given a list of `n` strings `a_1, a_2, ..., a_n`. Your task is to concatenate these strings in some order such that the resulting string is lexicographically the smallest possible.
## Input Format
- The first line contains an integer `n` (1 ≤ n ≤ 5·10^4), representing the number of strings.
- Each of the next `n` lines contains one string `a_i` (1 ≤ |a_i| ≤ 50), consisting of only lowercase English letters.
- The sum of the lengths of all strings will not exceed 5·10^4.
## Output Format
Print a single string `a` — the lexicographically smallest string concatenation.
## Examples
### Example 1
**Input**
4
abba
abacaba
bcd
er
text
**Output**
abacabaabbabcder
text
### Example 2
**Input**
5
x
xx
xxa
xxaa
xxaaa
text
**Output**
xxaaaxxaaxxaxxx
text
### Example 3
**Input**
3
c
cb
cba
text
**Output**
cbacbc
text
## Solution Directory
Place your solution in the `/app/` directory.
Important: place your implementation at /app/solution.py so the verifier can run it.