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.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.AbstractMap;
import java.util.TreeMap;
import java.util.Map;
import java.util.Collections;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        BUglyPairs solver = new BUglyPairs();
        solver.solve(1, in, out);
        out.close();
    }

    static class BUglyPairs {
        public void solve(int testNumber, FastReader s, PrintWriter out) {
            int t = s.nextInt();
            while (t-- > 0) {
                String str = s.nextString();
                TreeMap<Character, Integer> freqA = new TreeMap<>();
                for (int i = 0; i < str.length(); i++) {
                    if ((str.charAt(i) - 'a') % 2 == 0) {
                        freqA.put(str.charAt(i), freqA.getOrDefault(str.charAt(i), 0) + 1);
                    }
                }

                TreeMap<Character, Integer> freqB = new TreeMap<>();
                for (int i = 0; i < str.length(); i++) {
                    if ((str.charAt(i) - 'a') % 2 != 0) {
                        freqB.put(str.charAt(i), freqB.getOrDefault(str.charAt(i), 0) + 1);
                    }
                }

//            out.println(freqA + " " + freqB);

                if (freqA.isEmpty() || freqB.isEmpty()) {
//                out.println("Possible");
                    if (freqB.isEmpty()) {
                        ArrayList<Character> listS = new ArrayList<>(freqA.keySet());
                        StringBuilder ans = new StringBuilder();
                        for (char ch : listS) {
                            int freq = freqA.get(ch);
                            for (int i = 0; i < freq; i++) {
                                ans.append(ch);
                            }
                        }
                        out.println(ans);
                    } else {
                        ArrayList<Character> listS = new ArrayList<>(freqB.keySet());
                        StringBuilder ans = new StringBuilder();
                        for (char ch : listS) {
                            int freq = freqB.get(ch);
                            for (int i = 0; i < freq; i++) {
                                ans.append(ch);
                            }
                        }
                        out.println(ans);
                    }

                } else {
                    Character fA = freqA.firstKey();
                    Character sA = freqA.lastKey();
                    Character fB = freqB.firstKey();
                    Character sB = freqB.lastKey();

                    if (Math.abs(fA - fB) != 1) {
                        ArrayList<Character> listF = new ArrayList<>(freqA.keySet());
                        Collections.reverse(listF);
                        ArrayList<Character> listS = new ArrayList<>(freqB.keySet());
                        StringBuilder ans = new StringBuilder();
                        for (char ch : listF) {
                            int freq = freqA.get(ch);
                            for (int i = 0; i < freq; i++) {
                                ans.append(ch);
                            }
                        }

                        for (char ch : listS) {
                            int freq = freqB.get(ch);
                            for (int i = 0; i < freq; i++) {
                                ans.append(ch);
                            }
                        }

                        out.println(ans);
                    } else if (Math.abs(fA - sB) != 1) {
                        ArrayList<Character> listF = new ArrayList<>(freqA.keySet());
                        Collections.reverse(listF);
                        ArrayList<Character> listS = new ArrayList<>(freqB.keySet());
                        Collections.reverse(listS);
                        StringBuilder ans = new StringBuilder();
                        for (char ch : listF) {
                            int freq = freqA.get(ch);
                            for (int i = 0; i < freq; i++) {
                                ans.append(ch);
                            }
                        }

                        for (char ch : listS) {
                            int freq = freqB.get(ch);
                            for (int i = 0; i < freq; i++) {
                                ans.append(ch);
                            }
                        }

                        out.println(ans);
                    } else if (Math.abs(sA - fB) != 1) {
                        ArrayList<Character> listF = new ArrayList<>(freqA.keySet());
//                Collections.reverse(listF);
                        ArrayList<Character> listS = new ArrayList<>(freqB.keySet());
                        StringBuilder ans = new StringBuilder();
                        for (char ch : listF) {
                            int freq = freqA.get(ch);
                            for (int i = 0; i < freq; i++) {
                                ans.append(ch);
                            }
                        }

                        for (char ch : listS) {
                            int freq = freqB.get(ch);
                            for (int i = 0; i < freq; i++) {
                                ans.append(ch);
                            }
                        }

                        out.println(ans);
                    } else if (Math.abs(sA - sB) != 1) {
                        ArrayList<Character> listF = new ArrayList<>(freqA.keySet());
//                Collections.reverse(listF);
                        ArrayList<Character> listS = new ArrayList<>(freqB.keySet());
                        Collections.reverse(listS);
                        StringBuilder ans = new StringBuilder();

                        for (char ch : listF) {
                            int freq = freqA.get(ch);
                            for (int i = 0; i < freq; i++) {
                                ans.append(ch);
                            }
                        }

                        for (char ch : listS) {
                            int freq = freqB.get(ch);
                            for (int i = 0; i < freq; i++) {
                                ans.append(ch);
                            }
                        }

                        out.println(ans);
                    } else {

                        out.println("No answer");
                    }
                }
            }
        }

    }

    static class FastReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
        private FastReader.SpaceCharFilter filter;

        public FastReader(InputStream stream) {
            this.stream = stream;
        }

        public int read() {
            if (numChars == -1) {
                throw new InputMismatchException();
            }
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0) {
                    return -1;
                }
            }
            return buf[curChar++];
        }

        public int nextInt() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            int res = 0;
            do {
                if (c < '0' || c > '9') {
                    throw new InputMismatchException();
                }
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

        public String nextString() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            StringBuilder res = new StringBuilder();
            do {
                if (Character.isValidCodePoint(c)) {
                    res.appendCodePoint(c);
                }
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }

        public boolean isSpaceChar(int c) {
            if (filter != null) {
                return filter.isSpaceChar(c);
            }
            return isWhitespace(c);
        }

        public static boolean isWhitespace(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        public interface SpaceCharFilter {
            public boolean isSpaceChar(int ch);

        }

    }
}