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 PYTHON3):

Solution:
'''
    Auther: ghoshashis545 Ashis Ghosh
    College: jalpaiguri Govt Enggineering College

'''
from os import path
from io import BytesIO, IOBase
import sys
from heapq import heappush,heappop
from functools import cmp_to_key as ctk
from collections import deque,Counter,defaultdict as dd 
from bisect import bisect,bisect_left,bisect_right,insort,insort_left,insort_right
from itertools import permutations
from datetime import datetime
from math import ceil,sqrt,log,gcd
def ii():return int(input())
def si():return input().rstrip()
def mi():return map(int,input().split())
def li():return list(mi())
abc='abcdefghijklmnopqrstuvwxyz'
mod=1000000007
#mod=998244353
inf = float("inf")
vow=['a','e','i','o','u']
dx,dy=[-1,1,0,0],[0,0,1,-1]

def bo(i):
    return ord(i)-ord('0')

file = 1
def ceil(a,b):
    return (a+b-1)//b




def solve():


    for _ in range(ii()):
        
        s = si()
        s1 = list(set(s)) 
        s1.sort()
        # print(s1)
        if len(s1)==1:
            print(s)
            
        elif len(s1)==2:
            if ord(s1[0])+1 != ord(s1[1]):
                print(s)
            else:
                print("No answer")
        elif len(s1)==3:
            if ord(s1[0])+2 == ord(s1[1])+1 == ord(s1[2]):
                print("No answer")
            else:
                s = list(s) 
                if ord(s1[0])+1==ord(s1[1]):
                    print(s1[0]*s.count(s1[0])+s1[2]*s.count(s1[2])+s1[1]*s.count(s1[1]))
                else:
                    print(s1[2]*s.count(s1[2])+s1[0]*s.count(s1[0])+s1[1]*s.count(s1[1]))
        else:
            s = list(s)
            l = 0
            r = len(s1)-1
            idx = (r-l+1)//2
            f = 0
            res = s1[idx]*s.count(s1[idx])
            s1.remove(s1[idx])
            r-=1
            while l <= r:
                if f == 0:
                    res += s1[l]*s.count(s1[l])
                    l+=1
                else:
                    res += s1[r]*s.count(s1[r])
                    r-=1
                f ^= 1
            print(res)







            





    
        








        
if __name__ =="__main__":

    if(file):

        if path.exists('input.txt'):
            sys.stdin=open('input.txt', 'r')
            sys.stdout=open('output.txt','w')
        else:
            input=sys.stdin.readline
    solve()