#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    sort(s.begin(), s.end());
    int len = s.size();
    int i;
    string rest = "";
    string ans = "";
    ans += s[0];
    for (i = 1; i < len; ++i) {
      if (s[i] - *(ans.end() - 1) != 1)
        ans += s[i];
      else if (s[i] - *(ans.begin()) != 1)
        ans = s[i] + ans;
      else
        rest += s[i];
    }
    len = rest.size();
    for (i = 0; i < len; ++i) {
      if (abs(rest[i] - *(ans.end() - 1)) != 1)
        ans += rest[i];
      else if (abs(rest[i] - *(ans.begin())) != 1)
        ans = rest[i] + ans;
      else {
        break;
      }
    }
    if (ans.size() != s.size())
      cout << "No answer" << endl;
    else
      cout << ans << endl;
  }
  return 0;
}
