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:
//No sorceries shall prevail.
import java.util.*;
import java.io.*;
public class Main {

	static Scanner inp= new Scanner(System.in);
	static PrintWriter out= new PrintWriter(System.out);
	public static void main(String args[]) {		    	
	   	Main g=new Main();
	   	g.main();
	   	out.close();
	}

	
	
	//Main
	void main() {
		
		int t=inp.nextInt();
		loop:
		while(t-->0) {
			String s=inp.next();
			int freq[]=new int[26];
			int n=s.length();
			for(int i=0;i<n;i++) {
				freq[s.charAt(i)-'a']++;
			}
			int count=0;
			for(int i=0;i<26;i++) {
				if(freq[i]>0) count++;
			}
			if(count==1) {
				System.out.println(s);
			}
			else if(count==2) {
				int x[]=new int[2],c=0;
				for(int i=0;i<26;i++) {
					if(freq[i]>0) x[c++]=i;
				}
				if(x[0]==x[1]-1) {
					System.out.println("No answer");
				}else {
					for(int i=0;i<26;i++) {
						for(int j=0;j<freq[i];j++) {
							System.out.print(toChar(i));
						}
					}
					System.out.println();
				}
			}else if(count==3) {
				int x[]=new int[3],c=0;
				for(int i=0;i<26;i++) {
					if(freq[i]>0) x[c++]=i;
				}
				if(x[0]==x[1]-1 && x[1]==x[2]-1) {
					System.out.print("No answer");
				}else if(x[0]==x[1]-1) {
					print(x[1],freq[x[1]]);
					print(x[2],freq[x[2]]);
					print(x[0],freq[x[0]]);
				}
				else{
					print(x[2],freq[x[2]]);
					print(x[0],freq[x[0]]);
					print(x[1],freq[x[1]]);
				}
				System.out.println();
			}else {
				ArrayList<Integer> even=new ArrayList<>();
				ArrayList<Integer> odd=new ArrayList<>();
				int c=0;
				for(int i=0;i<26;i++) {
					if(freq[i]>0) {
						c++;
						if(c%2==1) odd.add(i);
						else even.add(i);
					}
				}
				for(int x: even) {
					for(int i=0;i<freq[x];i++) {
						System.out.print(toChar(x));
					}
				}
				for(int x: odd) {
					for(int i=0;i<freq[x];i++) {
						System.out.print(toChar(x));
					}
				}
				System.out.println();
			}
		}
	}
	
	static void print(int n, int times) {
		for(int i=0;i<times;i++) {
			System.out.print(toChar(n));
		}
	}
    
    static char toChar(int n) {
    	return (char)(n+97);
    }
		
}