#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    long long h = s.size();
    string ev, od;
    for (long long i = 0; i < h; i++) {
      if ((s[i] - 'a') % 2 == 0)
        ev.push_back(s[i]);
      else
        od.push_back(s[i]);
    }
    sort(ev.begin(), ev.end());
    sort(od.begin(), od.end());
    long long f1 = 0, f2 = 0;
    string s1 = ev + od, s2 = od + ev;
    for (long long i = 1; i < h; i++) {
      if (abs(s1[i] - s1[i - 1]) == 1) {
        f1 = 1;
        break;
      }
    }
    for (long long i = 1; i < h; i++) {
      if (abs(s2[i] - s2[i - 1]) == 1) {
        f2 = 1;
        break;
      }
    }
    if (f1 == 1 && f2 == 1) {
      cout << "No answer" << endl;
    } else if (f1 == 0) {
      cout << s1 << endl;
    } else if (f2 == 0) {
      cout << s2 << endl;
    }
  }
}
