#include <bits/stdc++.h>
using namespace std;
string calc(const char last, const int left) {
  if (!left) return string{last};
  for (int i = 0; i < 26; ++i)
    if (left & (1 << i) && abs(last - i) != 1) {
      string res = calc(i, left & ~(1 << i));
      if (!res.empty()) return last + res;
    }
  return "";
}
int main() {
  int query_amt;
  cin >> query_amt;
  for (int letter_amt[26], letter_used; query_amt--; cout << '\n') {
    fill_n(letter_amt, 26, 0);
    letter_used = 0;
    string str;
    cin >> str;
    for (const auto i : str) {
      ++letter_amt[i - 'a'];
      letter_used |= (1 << (i - 'a'));
    }
    string res = calc(CHAR_MIN, letter_used);
    if (!res.empty())
      for (int i = 1; i < res.size(); ++i)
        for (; letter_amt[res[i]]; --letter_amt[res[i]])
          cout << char(res[i] + 'a');
    else
      cout << "No answer";
  }
  return 0;
}
