#include <bits/stdc++.h>
#pragma GCC optimize("O3")
const long long LL_INF = 0x3f3f3f3f3f3f3f3f;
template <typename T>
T gcd(T a, T b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
long long power(long long a, long long b, long long m = 1000000007) {
  long long answer = 1;
  while (b) {
    if (b & 1) answer = (answer * a) % m;
    b /= 2;
    a = (a * a) % m;
  }
  return answer;
}
using namespace std;
void ctrl() { cout << "Control\n"; }
signed main() {
  long long t;
  cin >> t;
  while (t--) {
    string p, q;
    cin >> p;
    string even = "", odd = "";
    for (long long i = 0; i < p.length(); i++) {
      if ((p[i] - 'a') % 2)
        odd += p[i];
      else
        even += p[i];
    }
    sort(odd.begin(), odd.end());
    sort(even.begin(), even.end());
    long long ol = odd.length(), el = even.length();
    if (ol == 0)
      cout << even;
    else if (el == 0)
      cout << odd;
    else if (abs(odd[ol - 1] - even[0]) != 1)
      cout << odd + even;
    else if ((abs(odd[0] - even[el - 1]) != 1))
      cout << even + odd;
    else
      cout << "No answer";
    cout << endl;
  }
  return 0;
}
