#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string s;
    vector<char> tmp1, tmp2;
    cin >> s;
    for (int i = 0; i < s.size(); i++) {
      if (s[i] % 2)
        tmp2.push_back(s[i]);
      else
        tmp1.push_back(s[i]);
    }
    sort(tmp1.begin(), tmp1.end());
    sort(tmp2.begin(), tmp2.end());
    if (tmp1.empty() || tmp2.empty()) {
      for (char x : tmp1) cout << x;
      for (char x : tmp2) cout << x;
    } else if (abs(*(tmp1.begin()) - *(--tmp2.end())) != 1) {
      for (char x : tmp2) cout << x;
      for (char x : tmp1) cout << x;
    } else if (abs(*(tmp2.begin()) - *(--tmp1.end())) != 1) {
      for (char x : tmp1) cout << x;
      for (char x : tmp2) cout << x;
    } else {
      cout << "No answer";
    }
    cout << endl;
  }
}
