#include <bits/stdc++.h>
using namespace std;
bool check(string a) {
  bool flag = true;
  for (int i = 1; i <= a.size(); i++)
    if (abs(a[i] - a[i - 1]) == 1) flag = false;
  return flag;
}
int main() {
  int T;
  cin >> T;
  while (T--) {
    string s, one, two;
    cin >> s;
    for (int i = 0; i < s.size(); i++)
      if (s[i] % 2)
        one += s[i];
      else
        two += s[i];
    sort(one.begin(), one.end());
    sort(two.begin(), two.end());
    if (check(one + two))
      cout << one + two << "\n";
    else if (check(two + one))
      cout << two + one << "\n";
    else
      cout << "No answer\n";
  }
  return 0;
}
