#include <bits/stdc++.h>
using namespace std;
bool valid(string &str) {
  for (int i = 0; i < str.length() - 1; i++) {
    if (abs(str[i] - str[i + 1]) == 1) return false;
  }
  return true;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int tests;
  int letters[27];
  string line;
  cin >> tests;
  while (tests-- && cin >> line) {
    memset(letters, 0, sizeof letters);
    string unique = "";
    for (int i = 0; i < line.length(); i++) {
      int pos = (int)(line[i] - 'a');
      if (letters[pos]) {
        ++letters[pos];
      } else {
        ++letters[pos];
        unique += line[i];
      }
    }
    if (valid(line)) {
      cout << line << "\n";
    } else {
      sort(unique.begin(), unique.end());
      if (unique.length() == 3) {
        string possibleAns = "";
        if ((int)(unique[2] - unique[0]) != 1 &&
            (int)(unique[2] - unique[1]) != 1) {
          possibleAns += unique[0];
          possibleAns += unique[2];
          possibleAns += unique[1];
          for (int i = 0; i < possibleAns.length(); i++) {
            int pos = (int)(possibleAns[i] - 'a');
            while (letters[pos]--) cout << possibleAns[i];
          }
          cout << "\n";
        } else if ((int)(unique[1] - unique[0]) != 1 &&
                   (int)(unique[2] - unique[0]) != 1) {
          possibleAns += unique[1];
          possibleAns += unique[0];
          possibleAns += unique[2];
          for (int i = 0; i < possibleAns.length(); i++) {
            int pos = (int)(possibleAns[i] - 'a');
            while (letters[pos]--) cout << possibleAns[i];
          }
          cout << "\n";
        } else {
          cout << "No answer\n";
        }
      } else {
        int i = 0, j = unique.length() / 2;
        string possibleAns = "";
        while (j < unique.length()) {
          possibleAns += unique[j++];
          if (i < unique.length() / 2) possibleAns += unique[i++];
        }
        if (valid(possibleAns)) {
          for (int i = 0; i < possibleAns.length(); i++) {
            int pos = (int)(possibleAns[i] - 'a');
            while (letters[pos]--) cout << possibleAns[i];
          }
          cout << "\n";
        } else {
          cout << "No answer\n";
        }
      }
    }
  }
  return 0;
}
