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.FileInputStream;
// import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.StringTokenizer;

import static java.lang.Math.abs;
import static java.lang.Math.max;
import static java.util.Arrays.fill;

public class Main {
    FastScanner in;
    PrintWriter out;

    private void solve() throws IOException {
        int t = in.nextInt();
        while (t-- > 0) {
            int[] cnt = new int[26];
            for (char c : in.next().toCharArray())
                cnt[c - 'a']++;

            ArrayList<Integer> cntr = new ArrayList<>();
            ArrayList<Integer> ans = new ArrayList<>();
            for (int l = 0, r = 0; l < 26; l = r) {
                while (l < 26 && cnt[l] == 0)
                    l++;
                r = l;
                while (r < 26 && cnt[r] > 0)
                    r++;
                if (r - l == 2 || r - l == 3) {
                    cntr.add(r - 2);
                    for (int j = l; j < r; j++) {
                        if (j != r - 2)
                            ans.add(j);
                    }
                } else {
                    for (int j = l + 1; j < r; j += 2) {
                        ans.add(j);
                    }
                    for (int j = l; j < r; j += 2) {
                        ans.add(j);
                    }
                }
            }
            if (cntr.size() > 0 && abs(ans.get(ans.size() - 1) - cntr.get(0)) == 1 && abs(ans.get(0) - cntr.get(0)) == 1) {
                out.println("No answer");
            } else {
                if (cntr.size() > 0 && abs(ans.get(ans.size() - 1) - cntr.get(0)) == 1)
                    while (cnt[cntr.get(0)]-- > 0)
                        out.print((char) ('a' + cntr.get(0)));
                for (int j : ans)
                    while (cnt[j]-- > 0)
                        out.print((char) ('a' + j));
                for (int j : cntr)
                    while (cnt[j]-- > 0)
                        out.print((char) ('a' + j));
                out.println();
            }
        }
    }

    class FastScanner {
        StringTokenizer st;
        BufferedReader br;

        FastScanner(InputStream s) {
            br = new BufferedReader(new InputStreamReader(s));
        }

        String next() throws IOException {
            while (st == null || !st.hasMoreTokens())
                st = new StringTokenizer(br.readLine());
            return st.nextToken();
        }

        boolean hasNext() throws IOException {
            return br.ready() || (st != null && st.hasMoreTokens());
        }

        int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        double nextDouble() throws IOException {
            return Double.parseDouble(next());
        }

        String nextLine() throws IOException {
            return br.readLine();
        }

        boolean hasNextLine() throws IOException {
            return br.ready();
        }
    }

    private void run() throws IOException {
        in = new FastScanner(System.in); // new FastScanner(new FileInputStream("input.txt"));
        out = new PrintWriter(System.out); // new PrintWriter(new FileOutputStream("output.txt"));

        solve();

        out.flush();
        out.close();
    }

    public static void main(String[] args) throws IOException {
        new Main().run();
    }
}