Concatenating two numbers and means writing the digits of right after the digits of : concatenating and gives . Given an array of numbers, your task is to find the smallest number that can be obtained by concatenating all of them, each used exactly once, in some order.
Input
First line of input will be a single integer - the number of testcases.
Each testcase consists of two lines: the first contains an integer - the number of elements, and the second contains integers .
Output
For every testcase print a single line with the smallest number obtainable by concatenating all the given numbers.
Example
2 5 32 11 987 12 3 2 91919 919191
1112323987 91919191919
In the first testcase the order gives the smallest result - note that comes before . In the second, starting with beats starting with .
Constraints
This problem was adapted, with permission, from Najmanji broj nadovezivanjem više brojeva, authored by Društvo matematičara Srbije and Fondacija Petlja.