#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  long long n = s.size();
  vector<long long> cnt(26, 0);
  for (long long i = 0; i < n; i++) {
    cnt[s[i] - 'a']++;
  }
  vector<pair<char, long long> > lel;
  for (long long i = 0; i < 26; i++) {
    if (cnt[i]) {
      lel.push_back({'a' + i, cnt[i]});
    }
  }
  long long num_tests = 10000;
  do {
    random_shuffle(lel.begin(), lel.end());
    char prev = 0;
    bool flag = true;
    for (auto &i : lel) {
      if (abs(prev - i.first) == 1) {
        flag = false;
        break;
      }
      prev = i.first;
    }
    if (flag) {
      for (auto &i : lel)
        while (i.second--) cout << i.first;
      cout << endl;
      return;
    }
  } while (num_tests--);
  cout << "No answer\n";
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  srand(time(0));
  long long t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
