#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    string s, out;
    cin >> s;
    bool c = false;
    for (int(i) = 0; (i) < (s.length()); (i)++) {
      if (s[i] + 1 == s[i + 1] || s[i] == s[i + 1] + 1) {
        c = true;
        break;
      }
    }
    if (!c || s.length() == 1) {
      cout << s << endl;
      continue;
    }
    sort(s.begin(), s.end());
    string a, b;
    for (int(i) = 0; (i) < (s.length()); (i)++) {
      if (s[i] % 2 == 0) {
        a += s[i];
      } else {
        b += s[i];
      }
    }
    if (b.length() == 0) {
      cout << a;
      continue;
    } else if (a.length() == 0) {
      cout << b;
      continue;
    }
    if (a[a.length() - 1] != b[0] + 1 && a[a.length() - 1] + 1 != b[0]) {
      cout << a + b << "\n";
    } else if (b[b.length() - 1] != a[0] + 1 && b[b.length() - 1] + 1 != a[0]) {
      cout << b + a << "\n";
    } else {
      cout << "No answer\n";
    }
  }
}
