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

Solution:
#include <bits/stdc++.h>
const int md = 1000000007;
using namespace std;
using namespace std::chrono;
long long pw(long long a, long long b) {
  long long c = 1, m = a;
  while (b) {
    if (b & 1) c = (c * m);
    m = (m * m);
    b /= 2;
  }
  return c;
}
long long pwmd(long long a, long long b) {
  long long c = 1, m = a;
  while (b) {
    if (b & 1) c = (c * m) % md;
    m = (m * m) % md;
    b /= 2;
  }
  return c;
}
long long modinv(long long n) { return pwmd(n, md - 2); }
long long inverse(long long i) {
  if (i == 1) return 1;
  return (md - ((md / i) * inverse(md % i)) % md + md) % md;
}
int ceel(int a, int b) {
  if (a % b == 0)
    return a / b;
  else
    return a / b + 1;
}
int my_log(int n, int b) {
  long long i = 1;
  long long ans = 0;
  while (1) {
    if (i > n) {
      ans--;
      break;
    }
    if (i == n) break;
    i *= b;
    ans++;
  }
  return ans;
}
bool sortbysec(const pair<long long, long long> &a,
               const pair<long long, long long> &b) {
  return (a.second < b.second);
}
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
vector<char> capl = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
                     'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
                     'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
vector<char> sml = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
                    'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
                    's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
string conv(int a) {
  string b;
  int c = my_log(a, 2);
  c++;
  b = '1';
  for (int i = 0; i < c - 1; i++) {
    long long k = a >> (c - 2 - i);
    if (k & 1)
      b += '1';
    else
      b += '0';
  }
  if (a == 0) return "0";
  return b;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int t;
  string s;
  cin >> t;
  while (t--) {
    cin >> s;
    vector<int> v(26);
    vector<int> q;
    int n = s.length();
    for (int i = 0; i < n; i++) v[s[i] - 'a']++;
    for (int i = 0; i < 26; i++) {
      if (v[i]) q.push_back(i);
    }
    if (q.size() == 1)
      cout << s;
    else if (q.size() == 2) {
      if (q[1] - q[0] == 1)
        cout << "No answer";
      else
        cout << s;
    } else if (q.size() == 3) {
      if (q[2] - q[0] == 2)
        cout << "No answer";
      else if (q[2] - q[1] != 1) {
        for (int i = 0; i < v[q[0]]; i++) cout << sml[q[0]];
        for (int i = 0; i < v[q[2]]; i++) cout << sml[q[2]];
        for (int i = 0; i < v[q[1]]; i++) cout << sml[q[1]];
      } else {
        for (int i = 0; i < v[q[2]]; i++) cout << sml[q[2]];
        for (int i = 0; i < v[q[0]]; i++) cout << sml[q[0]];
        for (int i = 0; i < v[q[1]]; i++) cout << sml[q[1]];
      }
    } else {
      deque<int> dq;
      dq.push_back(q[2]), dq.push_back(q[0]), dq.push_back(q[3]),
          dq.push_back(q[1]);
      for (int i = 4; i < q.size(); i++) {
        if (i % 2 == 0)
          dq.push_front(q[i]);
        else
          dq.push_back(q[i]);
      }
      for (int i = 0; i < dq.size(); i++) {
        for (int j = 0; j < v[dq[i]]; j++) cout << sml[dq[i]];
      }
    }
    cout << "\n";
  }
}