Problem: You are given a string, consisting of lowercase Latin letters.

A pair of neighbouring letters in a string is considered ugly if these letters are also neighbouring in a alphabet. For example, string "abaca" contains ugly pairs at positions (1, 2) — "ab" and (2, 3) — "ba". Letters 'a' and 'z' aren't considered neighbouring in a alphabet.

Can you rearrange the letters of a given string so that there are no ugly pairs? You can choose any order of the letters of the given string but you can't add any new letters or remove the existing ones. You can also leave the order the same.

If there are multiple answers, print any of them.

You also have to answer T separate queries.

Input

The first line contains a single integer T (1 ≤ T ≤ 100) — the number of queries.

Each of the next T lines contains string s (1 ≤ |s| ≤ 100) — the string for the next query. It is guaranteed that it contains only lowercase Latin letters.

Note that in hacks you have to set T = 1.

Output

Print T lines. The i-th line should contain the answer to the i-th query.

If the answer for the i-th query exists, then print such a rearrangment of letters of the given string that it contains no ugly pairs. You can choose any order of the letters of the given string but you can't add any new letters or remove the existing ones. You can also leave the order the same.

If there are multiple answers, print any of them.

Otherwise print "No answer" for that query.

Example

Input


4
abcd
gg
codeforces
abaca


Output


cadb
gg
codfoerces
No answer

Note

In the first example answer "bdac" is also correct.

The second example showcases the fact that only neighbouring in alphabet letters are not allowed. The same letter is ok.

There are lots of valid answers for the third example.

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;
import java.util.stream.*;

public class UglyPairs {
    private static boolean debug = false;

    private static int N;
    private static String[] A;

    private static void solveProblem(InputStream instr) {
        Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(instr)));
        int testCount = 1;
        if (debug) {
            testCount = sc.nextInt();
        }

        for (int t = 1; t <= testCount; t++) {
            printDebug("------ " + t + " ------");
            N = sc.nextInt();
            A = readStrings(sc, N);
            Object result = solveTestCase();
            System.out.println(result);
        }
    }

    private static Object solveTestCase() {
        List<String> answer = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            StringBuilder odds = new StringBuilder();
            StringBuilder evens = new StringBuilder();
            char[] chars = A[i].toCharArray();
            for (int c = 0; c < chars.length; c++) {
                int value = chars[c] - 'a';
                if (value % 2 == 0) {
                    odds.append(chars[c]);
                } else {
                    evens.append(chars[c]);
                }
            }
            char[] oddArr = odds.toString().toCharArray();
            char[] evenArr = evens.toString().toCharArray();

            Arrays.sort(oddArr);
            Arrays.sort(evenArr);
            if (oddArr.length == 0 || evenArr.length == 0) {
                answer.add(new String(oddArr) + new String(evenArr));
            } else {
                if (Math.abs(oddArr[oddArr.length - 1] - evenArr[0]) != 1) {
                    answer.add(new String(oddArr) + new String(evenArr));
                } else if (Math.abs(evenArr[evenArr.length - 1] - oddArr[0]) != 1) {
                    answer.add(new String(evenArr) + new String(oddArr));
                } else {
                    answer.add("No answer");
                }
            }
        }
        return joinValues(answer, "\n");
    }

    private static int[] readInts(Scanner sc, int N) {
        int[] arr = new int[N];
        for (int i = 0; i < N; i++) {
            arr[i] = sc.nextInt();
        }
        return arr;
    }

    private static String[] readStrings(Scanner sc, int N) {
        String[] arr = new String[N];
        for (int i = 0; i < N; i++) {
            arr[i] = sc.next();
        }
        return arr;
    }

    private static String joinValues(List<? extends Object> list, String delim) {
        return list.stream().map(Object::toString).collect(Collectors.joining(delim));
    }

    public static void printDebug(Object str) {
        if (debug) {
            System.out.println("DEBUG: " + str);
        }
    }

    public static void main(String[] args) throws Exception {
        long currTime = System.currentTimeMillis();
        if (debug) {
            solveProblem(new FileInputStream(new File("input.in")));
            System.out.println("Time: " + (System.currentTimeMillis() - currTime));
        } else {
            solveProblem(System.in);
        }
    }

}