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>
#pragma comment(linker, "/stack:247474112")
#pragma GCC optimize("Ofast")
using namespace std;
const long long mod = 1e9 + 7;
const int inf = 1e9;
const long long inflong = 1e18;
int setbit(int n, int pos) { return n = n | (1 << pos); }
int resetbit(int n, int pos) { return n = n & ~(1 << pos); }
bool checkbit(int n, int pos) { return (bool)(n & (1 << pos)); }
template <typename T>
void print(const T& v) {
  cerr << v << ' ';
}
template <typename T>
T modMul(T x, T y) {
  x %= mod;
  y %= mod;
  return (x * y) % mod;
}
template <typename T>
T modAdd(T x, T y) {
  x %= mod;
  y %= mod;
  return (x + y) % mod;
}
template <typename T>
T modPow(T x, T k, T mod) {
  if (k == 0) return 1;
  if (k & 1) {
    return ((x % mod) * modPow(x, k - 1, mod) % mod) % mod;
  } else {
    T ret = modPow(x, k / 2, mod);
    ret %= mod;
    return (ret * ret) % mod;
  }
}
template <typename T1, typename... T2>
void print(const T1& first, const T2&... rest) {
  print(first);
  print(rest...);
}
template <typename T>
T ext_gcd(T num1, T num2, T& X, T& Y) {
  T r2, r1, q2, q1, x2, x1, y2, y1, x, y, r;
  x2 = 1;
  y2 = 0;
  x1 = 0;
  y1 = 1;
  for (r2 = num1, r1 = num2; r1 != 0;
       y2 = y1, y1 = y, x2 = x1, x1 = x, r2 = r1, r1 = r) {
    q1 = r2 / r1;
    x = x2 - q1 * x1;
    y = y2 - q1 * y1;
    r = r2 % r1;
  }
  X = x2;
  Y = y2;
  return r2;
}
template <typename T>
T modInv(T x, T m) {
  return modPow(x, m - 2, m);
  long long ret, t;
  ext_gcd(x, m, ret, t);
  ret %= m;
  if (ret < 0) ret += m;
  return ret;
}
const int M = 2000123;
const int mx = M / 2 + 2;
int a[M + 2], n, cnt[40], vis[40], f = 0;
string s;
int func(vector<int> v, int msk, int id) {
  if (f == 1) return 1;
  if (checkbit(msk, id)) return 0;
  msk = setbit(msk, id);
  v.push_back(id);
  if (v.size() == n) {
    for (int i = 0; i < v.size(); i++) {
      while (cnt[v[i]]) {
        cout << (char)(v[i] + 'a');
        cnt[v[i]]--;
      }
    }
    f = 1;
    cout << "\n";
    return 1;
  }
  for (int i = 0; i < 26; i++) {
    if (cnt[i] == 0) continue;
    if (abs(v.back() - i) == 1) continue;
    if (func(v, msk, i)) return 1;
  }
  return 0;
}
void solve() {
  f = 0;
  n = 0;
  memset(cnt, 0, sizeof cnt);
  memset(vis, 0, sizeof vis);
  s = "";
  cin >> s;
  for (int i = 0; i < s.size(); i++) cnt[s[i] - 'a']++;
  for (int i = 0; i < 26; i++)
    if (cnt[i] > 0) n++;
  for (int i = 0; i < 26; i++) {
    if (cnt[i]) {
      vector<int> v;
      if (func(v, 0, i)) return;
    }
  }
  cout << "No answer"
       << "\n";
}
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int x, cnt = 0, t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}