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:
q=int(input())
b=[]
c=[]
for p in range(q):
    b=[]
    c=[]
    e=[]
    
    a=list(input())
    for i in range(len(a)):
        if a[i]=='a':
            a[i]=1
        if a[i]=='b':
            a[i]=2
        if a[i]=='c':
            a[i]=3
        if a[i]=='d':
            a[i]=4
        if a[i]=='e':
            a[i]=5
        if a[i]=='f':
            a[i]=6
        if a[i]=='g':
            a[i]=7
        if a[i]=='h':
            a[i]=8
        if a[i]=='i':
            a[i]=9
        if a[i]=='j':
            a[i]=10
        if a[i]=='k':
            a[i]=11
        if a[i]=='l':
            a[i]=12
        if a[i]=='m':
            a[i]=13
        if a[i]=='n':
            a[i]=14
        if a[i]=='o':
            a[i]=15
        if a[i]=='p':
            a[i]=16
        if a[i]=='q':
            a[i]=17
        if a[i]=='r':
            a[i]=18
        if a[i]=='s':
            a[i]=19
        if a[i]=='t':
            a[i]=20
        if a[i]=='u':
            a[i]=21
        if a[i]=='v':
            a[i]=22
        if a[i]=='w':
            a[i]=23
        if a[i]=='x':
            a[i]=24
        if a[i]=='y':
            a[i]=25
        if a[i]=='z':
            a[i]=26
    d=sorted(a)
    for j in range(len(d)):
        if d[j]%2==0:
            c.append(d[j])
        else:
            b.append(d[j])
    if not b:
        e=c[:]
    elif not c:
        e=b[:]
    elif abs(c[-1]-b[0])!=1:
        e=c[:]+b[:]
    elif abs(b[-1]-c[0])!=1:
        e=b[:]+c[:]
    else:
        print('No answer')
        continue
    for i in range(len(e)):
        if e[i]==1:
            e[i]='a'
        if e[i]==2:
            e[i]='b'
        if e[i]==3:
            e[i]='c'
        if e[i]==4:
            e[i]='d'
        if e[i]==5:
            e[i]='e'
        if e[i]==6:
            e[i]='f'
        if e[i]==7:
            e[i]='g'
        if e[i]==8:
            e[i]='h'
        if e[i]==9:
            e[i]='i'
        if e[i]==10:
            e[i]='j'
        if e[i]==11:
            e[i]='k'
        if e[i]==12:
            e[i]='l'
        if e[i]==13:
            e[i]='m'
        if e[i]==14:
            e[i]='n'
        if e[i]==15:
            e[i]='o'
        if e[i]==16:
            e[i]='p'
        if e[i]==17:
            e[i]='q'
        if e[i]==18:
            e[i]='r'
        if e[i]==19:
            e[i]='s'
        if e[i]==20:
            e[i]='t'
        if e[i]==21:
            e[i]='u'
        if e[i]==22:
            e[i]='v'
        if e[i]==23:
            e[i]='w'
        if e[i]==24:
            e[i]='x'
        if e[i]==25:
            e[i]='y'
        if e[i]==26:
            e[i]='z'     
    
    if len(e)>0:
        print(*e,sep='')