Given a number , find out the largest number possible by rearranging its digits.
You are required to do this for independent test cases.
Constraints
For subtask 1 (20 points):
For subtask 2 (30 points):
For subtask 3 (50 points):
Input Format
The first line contains a single integer denoting the number of test cases.
Each of the following lines contains a single integer
Output Format
For each test case, print the answer in a single line.