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 N = 3 * 1e5 + 5;
const long long MOD = 998244353;
const long long inf = 1e18;
using namespace std;
long long modpow(long long x, long long n) {
  long long res = 1;
  while (n > 0) {
    if (n & 1) res = res * x % MOD;
    x = x * x % MOD;
    n >>= 1;
  }
  return res;
}
long long modFact(long long n, long long p) {
  if (n >= p) return 0;
  long long result = 1;
  for (long long i = 1; i <= n; i++) result = (result * i) % p;
  return result;
}
bool isPrime(int x) {
  if (x % 2 == 0) return 0;
  for (int i = 3; i <= sqrt(x); i += 2) {
    if (x % i == 0) return 0;
  }
  return 1;
}
void solve() {
  string s;
  cin >> s;
  int n = s.size();
  int cnt[26];
  memset(cnt, 0, sizeof(cnt));
  for (int i = 0; i < n; i++) {
    cnt[s[i] - 'a']++;
  }
  int dif = 0;
  for (int i = 0; i < 26; i++) {
    if (cnt[i]) {
      dif++;
    }
  }
  if (dif == 1) {
    cout << s << "\n";
  } else if (dif == 2) {
    bool iscons = false;
    for (int i = 0; i < 25; i++) {
      if (cnt[i] && cnt[i + 1]) {
        iscons = true;
      }
    }
    if (iscons) {
      cout << "No answer\n";
    } else {
      cout << s << "\n";
    }
  } else if (dif == 3) {
    bool iscons = false;
    for (int i = 0; i < 24; i++) {
      if (cnt[i] && cnt[i + 1] && cnt[i + 2]) {
        iscons = true;
      }
    }
    if (iscons) {
      cout << "No answer"
           << "\n";
    } else {
      int mid = 0;
      for (int i = 1; i <= 24; i++) {
        if (!cnt[i - 1] && cnt[i] && !cnt[i + 1]) {
          mid = i;
          break;
        }
      }
      if (cnt[0] && !cnt[1]) {
        mid = 0;
      }
      if (cnt[25] && !cnt[24]) {
        mid = 25;
      }
      string ans = "";
      while (cnt[mid]--) {
        char c = mid + 'a';
        ans += c;
      }
      int flag = 0;
      for (int i = 0; i < 26; i++) {
        if (i != mid && cnt[i] && flag) {
          while (cnt[i]--) {
            char c = i + 'a';
            ans = ans + (c);
          }
          break;
        } else if (i != mid && cnt[i] && !flag) {
          while (cnt[i]--) {
            char c = i + 'a';
            ans = c + ans;
          }
          flag++;
        }
      }
      cout << ans << "\n";
    }
  } else {
    string ans = "";
    int c4 = dif / 4;
    int i = 25;
    while (c4--) {
      int index1 = -1, index2 = -1, index3 = -1, index4 = -1, c1, c2, c3, c4;
      while (!cnt[i]) {
        i--;
      }
      index4 = i;
      i--;
      while (!cnt[i]) {
        i--;
      }
      index3 = i;
      i--;
      while (!cnt[i]) {
        i--;
      }
      index2 = i;
      i--;
      while (!cnt[i]) {
        i--;
      }
      index1 = i;
      i--;
      while (cnt[index3]--) {
        char c = index3 + 'a';
        ans += c;
      }
      while (cnt[index1]--) {
        char c = index1 + 'a';
        ans += c;
      }
      while (cnt[index4]--) {
        char c = index4 + 'a';
        ans += c;
      }
      while (cnt[index2]--) {
        char c = index2 + 'a';
        ans += c;
      }
    }
    if (dif % 4 == 1) {
      while (!cnt[i]) {
        i--;
      }
      while (cnt[i]--) {
        char c = i + 'a';
        ans += c;
      }
    } else if (dif % 4 == 2) {
      int index1, index2;
      while (!cnt[i]) {
        i--;
      }
      index1 = i;
      i--;
      while (!cnt[i]) {
        i--;
      }
      index2 = i;
      while (cnt[index1]--) {
        char c = index1 + 'a';
        ans += c;
      }
      while (cnt[index2]--) {
        char c = index2 + 'a';
        ans = c + ans;
      }
    } else if (dif % 4 == 3) {
      int index1, index2, index3;
      while (!cnt[i]) {
        i--;
      }
      index1 = i;
      i--;
      while (!cnt[i]) {
        i--;
      }
      index2 = i;
      i--;
      while (!cnt[i]) {
        i--;
      }
      index3 = i;
      while (cnt[index2]--) {
        char c = index2 + 'a';
        ans += c;
      }
      while (cnt[index3]--) {
        char c = index3 + 'a';
        ans = c + ans;
      }
      while (cnt[index1]--) {
        char c = index1 + 'a';
        ans = c + ans;
      }
    }
    cout << ans << "\n";
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  cerr << "Time : " << 1000 * ((double)clock()) / (double)CLOCKS_PER_SEC
       << "ms\n";
}