#include <bits/stdc++.h>
using namespace std;
bool check(vector<int> &gg) {
  for (int i = 1; i < (int)gg.size(); i++) {
    if (abs(gg[i - 1] - gg[i]) == 1) {
      return true;
    }
  }
  return false;
}
int main() {
  int T;
  cin >> T;
  while (T--) {
    string s;
    vector<int> f(30, 0), g, h, gg;
    cin >> s;
    for (char i : s) f[i - 'a']++;
    int fl = 0;
    for (int i = 0; i < 30; i++) {
      if (!f[i]) continue;
      if (fl)
        g.push_back(i);
      else
        h.push_back(i);
      fl ^= 1;
    }
    for (auto i : g) gg.push_back(i);
    for (auto i : h) gg.push_back(i);
    bool noans = check(gg);
    if (noans) {
      gg.clear();
      for (auto i : h) gg.push_back(i);
      for (auto i : g) gg.push_back(i);
      noans = check(gg);
    }
    if (noans) {
      printf("No answer\n");
      continue;
    }
    string ans = "";
    for (auto i : gg) {
      char c = 'a' + i;
      ans += string(f[i], c);
    }
    cout << ans << endl;
  }
}
