#include <bits/stdc++.h>
using namespace std;
bool isvalid(string s) {
  long long l = s.length();
  for (long long i = 0; i < l - 1; i++) {
    if (abs(s[i] - s[i + 1]) == 1) {
      return false;
    }
  }
  return true;
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    long long l = s.length();
    long long freq[26] = {0};
    for (long long i = 0; i < l; i++) {
      freq[s[i] - 'a']++;
    }
    string s1 = "", s2 = "";
    for (long long i = 0; i < 26; i += 2) {
      for (long long j = 0; j < freq[i]; j++) {
        s1 = s1 + char('a' + i);
      }
    }
    for (long long i = 1; i < 26; i += 2) {
      for (long long j = 0; j < freq[i]; j++) {
        s1 = s1 + char('a' + i);
      }
    }
    if (isvalid(s1)) {
      cout << s1 << "\n";
      continue;
    }
    for (long long i = 1; i < 26; i += 2) {
      for (long long j = 0; j < freq[i]; j++) {
        s2 = s2 + char('a' + i);
      }
    }
    for (long long i = 0; i < 26; i += 2) {
      for (long long j = 0; j < freq[i]; j++) {
        s2 = s2 + char('a' + i);
      }
    }
    if (isvalid(s2)) {
      cout << s2 << "\n";
      continue;
    }
    cout << "No answer\n";
  }
}
