As they say, small is cute and beautiful.
Given N distinct positive integers, find the smallest number that can be formed by concatenating all of them.
The first line of the input file contains a positive integer N. Then N lines follow.
Each line contains a single positive integer K.
Output the smallest possible number that can be formed by concatenating all the numbers.
1 ≤ N ≤ 5000
1 ≤ K ≤ 1015