#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(false);
  int a, b, t, n, m;
  cin >> t;
  string s;
  for (int ii = 0; ii < t; ii++) {
    cin >> s;
    int c[26] = {0};
    for (int i = 0; i < 26; i++) {
      c[i] = 0;
    }
    for (int j = 0; j < s.size(); j++) {
      c[s[j] - 'a']++;
    }
    string odd;
    string even;
    for (int i = 0; i < 26; i++) {
      while (c[i] > 0) {
        if (i % 2 == 0) {
          even.push_back(i + 'a');
        } else {
          odd.push_back(i + 'a');
        }
        c[i]--;
      }
    }
    if (abs(odd[odd.size() - 1] - even[0]) != 1) {
      cout << odd << even << endl;
    } else if (abs(even[even.size() - 1] - odd[0]) != 1) {
      cout << even << odd << endl;
    } else {
      cout << "No answer" << endl;
    }
  }
  return 0;
}
