#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    string s;
    cin >> s;
    string res;
    vector<int> odd;
    vector<int> even;
    for (int j = 0; j < s.size(); j++) {
      if ((s[j] - 'a') % 2 == 0) {
        even.push_back(s[j] - 'a');
      } else {
        odd.push_back(s[j] - 'a');
      }
    }
    sort(even.begin(), even.end());
    sort(odd.begin(), odd.end());
    if (!odd.empty() && !even.empty()) {
      if (abs(even.back() - odd.front()) == 1) {
        swap(odd.front(), odd.back());
        if (abs(even.back() - odd.front()) == 1) {
          swap(even.front(), even.back());
          if (abs(even.back() - odd.front()) == 1) {
            swap(odd.front(), odd.back());
            if (abs(even.back() - odd.front()) == 1) {
              cout << "No answer" << endl;
              continue;
            }
          }
        }
      }
    }
    for (int j = 0; j < even.size(); j++) {
      res.push_back('a' + even[j]);
    }
    for (int j = 0; j < odd.size(); j++) {
      res.push_back('a' + odd[j]);
    }
    cout << res << endl;
  }
  return 0;
}
