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.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Objects;
import java.util.TreeMap;
import java.util.Map;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.InputStream;

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

    static class BUglyPairs {
        public void solve(int testNumber, InputReader in, OutputWriter out) {
            int t = in.nextInt();
            String s;
            int x, y, z;
            ArrayList<Pair> al = new ArrayList<>();
            TreeMap<Character, Integer> tm = new TreeMap<>();
            while (t-- > 0) {
                s = in.nextString();
                al.clear();
                tm.clear();
                for (int i = 0; i < s.length(); i++) {
                    x = tm.getOrDefault(s.charAt(i), 0);
                    tm.put(s.charAt(i), x + 1);
                }
                for (char ch : tm.keySet())
                    al.add(new Pair(ch, tm.get(ch)));
                //out.println(al.size());
                if (al.size() == 2) {
                    x = al.get(0).ch;
                    y = al.get(1).ch;
                    if (Math.abs(x - y) == 1) {
                        out.println("No answer");
                        continue;
                    } else {
                        for (int i = 0; i < al.get(0).y; i++)
                            out.print(al.get(0).ch);
                        for (int i = 0; i < al.get(1).y; i++)
                            out.print(al.get(1).ch);
                        out.println();
                    }
                } else if (al.size() == 3) {
                    x = al.get(0).ch;
                    y = al.get(1).ch;
                    z = al.get(2).ch;
                    if (Math.abs(x - y) == 1 && Math.abs(z - y) == 1) {
                        out.println("No answer");
                        continue;
                    } else if (Math.abs(x - y) == 1) {
                        for (int i = 0; i < al.get(0).y; i++)
                            out.print(al.get(0).ch);
                        for (int i = 0; i < al.get(2).y; i++)
                            out.print(al.get(2).ch);
                        for (int i = 0; i < al.get(1).y; i++)
                            out.print(al.get(1).ch);
                        out.println();
                    } else {
                        for (int i = 0; i < al.get(2).y; i++)
                            out.print(al.get(2).ch);
                        for (int i = 0; i < al.get(0).y; i++)
                            out.print(al.get(0).ch);
                        for (int i = 0; i < al.get(1).y; i++)
                            out.print(al.get(1).ch);
                        out.println();
                    }
                } else {
                    for (int i = 1; i < al.size(); i += 2) {
                        for (int j = 0; j < al.get(i).y; j++)
                            out.print(al.get(i).ch);
                    }
                    for (int i = 0; i < al.size(); i += 2) {
                        for (int j = 0; j < al.get(i).y; j++)
                            out.print(al.get(i).ch);
                    }
                    out.println();
                }
            }
        }

    }

    static class Pair implements Comparable<Pair> {
        public int y;
        public char ch;

        public Pair(char ch, int y) {
            this.ch = ch;
            this.y = y;
        }

        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            Pair pair = (Pair) o;
            return ch == pair.ch &&
                    y == pair.y;
        }

        public int hashCode() {
            return Objects.hash(ch, y);
        }

        public int compareTo(Pair p) {
            return Integer.compare(y, p.y);
        }

    }

    static class OutputWriter {
        private final PrintWriter writer;

        public OutputWriter(OutputStream outputStream) {
            writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
        }

        public OutputWriter(Writer writer) {
            this.writer = new PrintWriter(writer);
        }

        public void print(Object... objects) {
            for (int i = 0; i < objects.length; i++) {
                if (i != 0) {
                    writer.print(' ');
                }
                writer.print(objects[i]);
            }
        }

        public void println() {
            writer.println();
        }

        public void println(Object... objects) {
            print(objects);
            writer.println();
        }

        public void close() {
            writer.close();
        }

    }

    static class InputReader {
        private InputStream stream;
        private byte[] buf = new byte[8192];
        private int curChar;
        private int snumChars;
        private InputReader.SpaceCharFilter filter;

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

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

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

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

        public boolean isSpaceChar(int c) {
            if (filter != null)
                return filter.isSpaceChar(c);
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

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

        }

    }
}