#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    long long int l = s.length();
    long long int i;
    string s1 = "", s2 = "";
    for (i = 0; i < l; i++) {
      long long int x = s[i] - 'a';
      if (x % 2 == 0)
        s1 += s[i];
      else
        s2 += s[i];
    }
    sort(s1.begin(), s1.end());
    sort(s2.begin(), s2.end());
    s = s1 + s2;
    long long int f = 0, g = 0;
    for (i = 0; i < l - 1; i++) {
      long long int x, y;
      x = s[i] - 'a';
      y = s[i + 1] - 'a';
      if (abs(x - y) == 1) {
        f = 1;
        break;
      }
    }
    if (f == 0) g = 1;
    if (g == 1) {
      cout << s << '\n';
      continue;
    }
    f = 0;
    s = s2 + s1;
    for (i = 0; i < l - 1; i++) {
      long long int x, y;
      x = s[i] - 'a';
      y = s[i + 1] - 'a';
      if (abs(x - y) == 1) {
        f = 1;
        break;
      }
    }
    if (f == 0) g = 1;
    if (g == 1)
      cout << s << '\n';
    else
      cout << "No answer\n";
  }
}
