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.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;

import static java.lang.Math.abs;

public class CF2 {
    public static void main(String[] args) {
        new CF2().solve1();
    }

//    void solve() {
//        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
//        int n = in.nextInt();
//        int z = in.nextInt();
//        int[] x = new int[n];
//        for (int i = 0; i < n; i++) {
//            x[i] = in.nextInt();
//        }
//        Arrays.sort(x);
//        int[] x2 = new int[n];
//        for (int i = 0; i < n; i++) {
//            x2[i] = x[n - 1 - i];
//        }
//        System.out.println(max(tr(x, n, z), tr(x2, n, z)));
//    }
//
//    int tr(int[] x, int n, int z) {
//
//        int b = 0;
//        int mt = 0;
//        for (int i = 1; i < n; i++) {
//            if (abs(x[i] - x[0]) >= z) {
//                b = i + 1;
//                mt++;
//                break;
//            }
//        }
//        int a = 1;
//        for (int i = b; i < n; i++) {
//            if (a != i && abs(x[i] - x[a]) >= z) {
//                mt++;
//                a++;
//            }
//        }
//        return mt;
//    }
//}

    void solve1() {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = in.nextInt();
        for (int i = 0; i < n; i++) {
            String s = in.next();
            char[] chars = s.toCharArray();
            Arrays.sort(chars);
            int[] ch = new int[26];
            for (char aChar : chars) {
                ch[aChar - 'a']++;
            }
            int l = 0;
            for (int c = 0; c < 26; c++) {
                if (ch[c] > 0) {
                    l++;
                }
            }

            int pc = 0;
            char[] wc = new char[l];
            for (char c = 'a'; c <= 'z'; c++) {
                if (ch[c - 'a'] > 0) {
                    wc[pc++] = c;
                }
            }

            int b = 0;
            for (int c = 1; c < chars.length; c++) {
                if (abs(chars[c] - chars[c - 1]) == 1) {
                    b++;
                }
            }
            if (l == 2 && b == 1 || l == 3 && b == 2) {
                System.out.println("No answer");
                continue;
            }
            if (l == 1) {
                System.out.println(s);
                continue;
            }
            if (l == 2) {
                System.out.println(s);
                continue;
            }

            if (l == 3) {
                if (wc[1] - wc[0] == 1) {
                    pr(wc[1], ch[wc[1] - 'a']);
                    pr(wc[2], ch[wc[2] - 'a']);
                    pr(wc[0], ch[wc[0] - 'a']);
                } else {
                    pr(wc[1], ch[wc[1] - 'a']);
                    pr(wc[0], ch[wc[0] - 'a']);
                    pr(wc[2], ch[wc[2] - 'a']);
                }
                nl();
                continue;
            }
            if (l == 4) {
                pr(wc[2], ch[wc[2] - 'a']);
                pr(wc[0], ch[wc[0] - 'a']);
                pr(wc[3], ch[wc[3] - 'a']);
                pr(wc[1], ch[wc[1] - 'a']);
                nl();
                continue;
            }

            if (l % 2 == 1) {
                pr(wc[l / 2], ch[wc[l / 2] - 'a']);
            }
            for (int j = 0; j < l / 2; j++) {
                pr(wc[j], ch[wc[j] - 'a']);
                pr(wc[(l + 1) / 2 + j], ch[wc[(l + 1) / 2 + j] - 'a']);
            }

            nl();
        }
    }

    private void pr(char c, int ch) {
        for (int i = 0; i < ch; i++) {
            System.out.print(c);
        }
    }

    private void nl() {
        System.out.println();
    }

    void solve() {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = in.nextInt();
        int[] P = new int[n];
        int[] PI = new int[n + 1];
        for (int i = 0; i < n; i++) {
            P[i] = in.nextInt();
            PI[P[i]] = i;
        }

        long res = 0L;
        boolean[] w = new boolean[n];
        for (int i = n; i >= 3; i--) {
            int pos = PI[i];
            w[pos] = true;
            int a = pos - 1;
            int b = pos + 1;

            while (a >= 0 && P[a] < i && b < n && P[b] < i) {
                a--;
                b++;
            }
            if (a == -1 || P[a] > i) {
                for (int j = a + 1; j < pos; j++) {
                    if (PI[i - P[j]] > pos) {
                        res++;
                    }
                }
            } else {
                for (int j = pos + 1; j < b; j++) {
                    if (PI[i - P[j]] < pos) {
                        res++;
                    }
                }
            }
        }
        System.out.println(res);
    }
}