#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  while (q--) {
    string s, x, y;
    cin >> s;
    sort(s.begin(), s.end());
    for (int i = 0; i < s.size(); i++) {
      if (s[i] & 1) {
        x += s[i];
      } else {
        y += s[i];
      }
    }
    if (!x.size() && y.size())
      cout << y << endl;
    else if (x.size() && !y.size())
      cout << x << endl;
    else if (abs(x[x.size() - 1] - y[0]) != 1)
      cout << x + y << endl;
    else if (abs(x[0] - y[y.size() - 1]) != 1)
      cout << y + x << endl;
    else
      cout << "No answer" << endl;
  }
  return 0;
}
