You are given n string S1,S2,...,Sn.
Find the shortest string S that S1,S2,...,Sn are substrings of S.
### Input
- The first line contains an integer n.
- The next n lines, each line contains a string Si.
### Output
- Print the shortest string.
### Constraints
- 1≤n≤50.
- 1≤|Si|≤10.
### Example
Input:
3abbda
Output:
dab
### Scoring
- All test cases are scored equally.
- Consider the jury's string length as Y and your string length as X.
- If X≤Y, you receive a score of 100% for test case.
- If 1<XY≤1.5, your score for the test case is calculated as (3Y−2XY)3×100 .
- If XY>1.5, you receive a score of 0% for the test case.