#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int t;
  cin >> t;
  vector<string> queris;
  for (int i = 0; i < t; ++i) {
    string str;
    str.reserve(150);
    cin >> str;
    map<char, int> make_pair;
    string first = "";
    for (auto &c : str) {
      ++make_pair[c];
    }
    int t = 0;
    for (auto &c : make_pair) {
      if (t % 2 == 0) {
        string t(c.second, c.first);
        first += t;
      }
      ++t;
    }
    t = 0;
    string second = "";
    for (auto &c : make_pair) {
      if (t % 2 == 1) {
        string t(c.second, c.first);
        second += t;
      }
      ++t;
    }
    if (first.length() > 0 && second.length() > 0 &&
        abs(first[first.length() - 1] - second[0]) != 1) {
      queris.push_back(first + second);
    } else if (first.length() > 0 && second.length() > 0 &&
               abs(first[0] - second[second.length() - 1]) != 1) {
      queris.push_back(second + first);
    } else if (first.length() > 0 && second.length() == 0) {
      queris.push_back(first);
    } else if (first.length() == 0 && second.length() > 0) {
      queris.push_back(second);
    } else {
      queris.push_back("No answer");
    }
  }
  for (auto &i : queris) {
    cout << i << endl;
  }
  return 0;
}
