#include <bits/stdc++.h>
using namespace std;
int t;
int main() {
  cin >> t;
  for (int i = 0; i < t; i++) {
    string s;
    cin >> s;
    sort(s.begin(), s.end());
    string a = "", b = "";
    for (int j = 0; j < s.size(); j++) {
      if ((int)(s[j]) % 2) {
        a += s[j];
      } else {
        b += s[j];
      }
    }
    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;
}
