#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    sort(s.begin(), s.end());
    string a = "", b = "";
    for (char x : s) {
      if (int(x - 'a') % 2 == 1)
        a += x;
      else
        b += x;
    }
    if (a.length() == 0 || b.length() == 0)
      cout << a << b << endl;
    else if (abs(a[0] - b[b.length() - 1]) != 1)
      cout << b << a << endl;
    else if (abs(b[0] - a[a.length() - 1]) != 1)
      cout << a << b << endl;
    else
      cout << "No answer" << endl;
  }
  return 0;
}
