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.nio.CharBuffer;
import java.util.ArrayList;
import java.util.NoSuchElementException;

public class P1156B {

    public static void main(String[] args) {
        SimpleScanner scanner = new SimpleScanner(System.in);
        PrintWriter writer = new PrintWriter(System.out);

        int caseNum = scanner.nextInt();
        while (caseNum-- > 0) {
            String s = scanner.next();
            int n = s.length();
            ArrayList<Character> odd = new ArrayList<>();
            ArrayList<Character> even = new ArrayList<>();
            int[] cnt = new int[26];
            for (int i = 0; i < n; ++i) {
                char c = s.charAt(i);
                if (cnt[c - 'a'] == 0) {
                    if ((c - 'a') % 2 == 0)
                        even.add(c);
                    else
                        odd.add(c);
                }
                ++cnt[c - 'a'];
            }
            if (odd.size() == 0 || even.size() == 0) {
                writer.println(s);
                continue;
            }
            boolean valid = false;
            for (int i = 0; !valid && i < odd.size(); ++i)
                for (int j = 0; j < even.size(); ++j)
                    if (odd.get(i) - even.get(j) != 1 && odd.get(i) - even.get(j) != -1) {
                        for (char oddChar : odd) {
                            if (oddChar != odd.get(i)) {
                                for (int k = 0; k < cnt[oddChar - 'a']; ++k)
                                    writer.print(oddChar);
                            }
                        }
                        for (int k = 0; k < cnt[odd.get(i) - 'a']; ++k)
                            writer.print(odd.get(i));
                        for (int k = 0; k < cnt[even.get(j) - 'a']; ++k)
                            writer.print(even.get(j));
                        for (char evenChar : even) {
                            if (evenChar != even.get(j)) {
                                for (int k = 0; k < cnt[evenChar - 'a']; ++k)
                                    writer.print(evenChar);
                            }
                        }
                        writer.println();
                        valid = true;
                        break;
                    }
            if (!valid)
                writer.println("No answer");
        }

        writer.close();
    }

    private static class SimpleScanner {

        private static final int BUFFER_SIZE = 10240;

        private Readable in;
        private CharBuffer buffer;
        private boolean eof;

        SimpleScanner(InputStream in) {
            this.in = new BufferedReader(new InputStreamReader(in));
            buffer = CharBuffer.allocate(BUFFER_SIZE);
            buffer.limit(0);
            eof = false;
        }


        private char read() {
            if (!buffer.hasRemaining()) {
                buffer.clear();
                int n;
                try {
                    n = in.read(buffer);
                } catch (IOException e) {
                    n = -1;
                }
                if (n <= 0) {
                    eof = true;
                    return '\0';
                }
                buffer.flip();
            }
            return buffer.get();
        }

        void checkEof() {
            if (eof)
                throw new NoSuchElementException();
        }

        char nextChar() {
            checkEof();
            char b = read();
            checkEof();
            return b;
        }

        String next() {
            char b;
            do {
                b = read();
                checkEof();
            } while (Character.isWhitespace(b));
            StringBuilder sb = new StringBuilder();
            do {
                sb.append(b);
                b = read();
            } while (!eof && !Character.isWhitespace(b));
            return sb.toString();
        }

        int nextInt() {
            return Integer.valueOf(next());
        }

        long nextLong() {
            return Long.valueOf(next());
        }

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