#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  string s;
  string a = "";
  string b = "";
  int i, j;
  while (t > 0) {
    t--;
    cin >> s;
    int len = s.length();
    for (i = 0; i < len; i++) {
      if ((s[i] - 97) % 2 == 0)
        a = a + s[i];
      else
        b = b + s[i];
    }
    int l1 = a.length();
    int l2 = b.length();
    if (l1 == 0)
      cout << b;
    else if (l2 == 0)
      cout << a;
    else {
      sort(a.begin(), a.end());
      sort(b.begin(), b.end());
      if (abs(a[l1 - 1] - b[0]) != 1)
        cout << a << b;
      else {
        if (abs(b[l2 - 1] - a[0]) != 1)
          cout << b << a;
        else
          cout << "No answer";
      }
    }
    a = "";
    b = "";
    cout << "\n";
  }
  return 0;
}
