#include <bits/stdc++.h>
using namespace std;
int main() {
  int test_cases;
  cin >> test_cases;
  for (int cur_test = 1; cur_test <= test_cases; ++cur_test) {
    string s;
    cin >> s;
    string str[2];
    for (char c : s) {
      str[(c - 'a') % 2] += c;
    }
    for (int i = 0; i <= 1; ++i) sort(str[i].begin(), str[i].end());
    if (str[0] == "")
      cout << str[1] << '\n';
    else if (str[1] == "")
      cout << str[0] << '\n';
    else {
      if (abs(str[0].back() - str[1][0]) == 1) {
        if (abs(str[0][0] - str[1].back()) == 1)
          cout << "No answer" << '\n';
        else
          cout << str[1] + str[0] << '\n';
      } else
        cout << str[0] + str[1] << '\n';
    }
  }
  return 0;
}
