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.util.*;
import java.io.*;

public class ER64B
{

	public static void main(String[] args)
	{
		JS scan = new JS();
		int t = scan.nextInt();
		for(int q = 1; q <= t; q++){
			String s = scan.next();
			ArrayList<Integer> ans = new ArrayList<Integer>();
			int[] freq = new int[26];
			for(int i = 0; i < s.length(); i++){
				freq[s.charAt(i)-'a']++;
			}
			ArrayList<Integer> secondPass = new ArrayList<Integer>();
			for(int i = 0; i < 26; i++){
				//System.out.println(i);
				if(freq[i] != 0){
					//System.out.println("hey");
					if(ans.size() == 0) ans.add(i);
					else{
						//System.out.println("why");
						boolean inserted = false;
						for(int j = 0; j < ans.size(); j++){
							if(i-ans.get(j) != 1){
								if(j == 0){
									ans.add(j, i);
									inserted = true;
									break;
								}
								else if(i - ans.get(j-1) != 1){
									ans.add(j, i);
									inserted = true;
									break;
								}
							}
						}
						if(!inserted){
							//could add to end
							if(i-ans.get(ans.size()-1) != 1){
								ans.add(i);
								inserted = true;
							}
						}
						if(!inserted){
							secondPass.add(i);
						}
					}
				}
			}
			//System.out.println("here");
			boolean cant = false;
			for(int qq = 0; qq < secondPass.size(); qq++){
				int i = secondPass.get(qq);
				boolean inserted = false;
				for(int j = 0; j < ans.size(); j++){
					if(Math.abs(i-ans.get(j)) != 1){
						if(j == 0){
							ans.add(j, i);
							inserted = true;
							break;
						}
						else if(Math.abs(i - ans.get(j-1)) != 1){
							ans.add(j, i);
							inserted = true;
							break;
						}
					}
				}
				if(!inserted){
					//could add to end
					if(Math.abs(i-ans.get(ans.size()-1)) != 1){
						ans.add(i);
						inserted = true;
					}
				}
				if(!inserted){
					cant = true;
				}
			}
			if(cant) System.out.println("No answer");
			else{
				for(int j = 0; j < ans.size(); j++){
					int x = ans.get(j);
					for(int i = 0; i < freq[x]; i++) System.out.print((char)(x+'a'));
				}
				System.out.println();
			}
		} 
	}
	
	static class JS{
		public int BS = 1<<16;
		public char NC = (char)0;
		byte[] buf = new byte[BS];
		int bId = 0, size = 0;
		char c = NC;
		double num = 1;
		BufferedInputStream in;

		public JS() {
			in = new BufferedInputStream(System.in, BS);
		}

		public JS(String s) throws FileNotFoundException {
			in = new BufferedInputStream(new FileInputStream(new File(s)), BS);
		}

		public char nextChar(){
			while(bId==size) {
				try {
					size = in.read(buf);
				}catch(Exception e) {
					return NC;
				}				
				if(size==-1)return NC;
				bId=0;
			}
			return (char)buf[bId++];
		}

		public int nextInt() {
			return (int)nextLong();
		}

		public long nextLong() {
			num=1;
			boolean neg = false;
			if(c==NC)c=nextChar();
			for(;(c<'0' || c>'9'); c = nextChar()) {
				if(c=='-')neg=true;
			}
			long res = 0;
			for(; c>='0' && c <='9'; c=nextChar()) {
				res = (res<<3)+(res<<1)+c-'0';
				num*=10;
			}
			return neg?-res:res;
		}

		public double nextDouble() {
			double cur = nextLong();
			return c!='.' ? cur:cur+nextLong()/num;
		}

		public String next() {
			StringBuilder res = new StringBuilder();
			while(c<=32)c=nextChar();
			while(c>32) {
				res.append(c);
				c=nextChar();
			}
			return res.toString();
		}

		public String nextLine() {
			StringBuilder res = new StringBuilder();
			while(c<=32)c=nextChar();
			while(c!='\n') {
				res.append(c);
				c=nextChar();
			}
			return res.toString();
		}

		public boolean hasNext() {
			if(c>32)return true;
			while(true) {
				c=nextChar();
				if(c==NC)return false;
				else if(c>32)return true;
			}
		}
	}
}