#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    string s;
    cin >> s;
    int cnt[26];
    fill(cnt, cnt + 26, 0);
    set<int> st;
    int u = s.size();
    for (int j = 0; j < u; j++) {
      int y = s[j] - 'a';
      cnt[y]++;
      st.insert(y);
    }
    u /= 2;
    vector<int> ans;
    vector<int> v;
    for (auto itr = st.begin(); itr != st.end(); itr++) {
      v.push_back(*itr);
    }
    if (v.size() == 1) {
      cout << s << endl;
      continue;
    }
    if (v.size() == 2) {
      if (v[0] - v[1] == -1)
        cout << "No answer" << endl;
      else {
        cout << s << endl;
      }
      continue;
    }
    if (v.size() == 3) {
      if (v[0] == v[1] - 1 && v[1] == v[2] - 1)
        cout << "No answer" << endl;
      else if (v[0] == v[1] - 1) {
        for (int j = 0; j < cnt[v[0]]; j++) cout << (char)(v[0] + 'a');
        for (int j = 0; j < cnt[v[2]]; j++) cout << (char)(v[2] + 'a');
        for (int j = 0; j < cnt[v[1]]; j++) cout << (char)(v[1] + 'a');
        cout << endl;
      } else if (v[1] == v[2] - 1) {
        for (int j = 0; j < cnt[v[2]]; j++) cout << (char)(v[2] + 'a');
        for (int j = 0; j < cnt[v[0]]; j++) cout << (char)(v[0] + 'a');
        for (int j = 0; j < cnt[v[1]]; j++) cout << (char)(v[1] + 'a');
        cout << endl;
      } else {
        for (int j = 0; j < cnt[v[0]]; j++) cout << (char)(v[0] + 'a');
        for (int j = 0; j < cnt[v[2]]; j++) cout << (char)(v[2] + 'a');
        for (int j = 0; j < cnt[v[1]]; j++) cout << (char)(v[1] + 'a');
        cout << endl;
      }
      continue;
    }
    for (int j = 1; j < v.size(); j += 2) {
      for (int k = 0; k < cnt[v[j]]; k++) cout << (char)(v[j] + 'a');
    }
    for (int j = 0; j < v.size(); j += 2) {
      for (int k = 0; k < cnt[v[j]]; k++) cout << (char)(v[j] + 'a');
    }
    cout << endl;
  }
}
