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