For a positive (strictly greater than $$$0$$$) integer $$$x$$$, the string $$$S(x)$$$ is formed through the following process:
For example:
You are given a string $$$s$$$ consisting of digits. Your task is to rearrange the characters in this string so that it forms the string $$$S(x)$$$ for some number $$$x$$$. Removing characters and/or adding new characters is not allowed. If the given string $$$s$$$ is already the string $$$S(x)$$$ for some number $$$x$$$, you may leave it unchanged.
The first line contains one integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases.
Each test case consists of one string containing $$$s$$$ ($$$1 \le |s| \le 10^5$$$) — a sequence of digits.
Additional constraints on the input:
For each test case, output one string — $$$s$$$ after rearranging the characters. If there are multiple valid answers, output any of them.
5127351011999992999999992999599999999999994621467
751231101999999999999999999999999999925296442167