#include <bits/stdc++.h>
using namespace std;
bool check(string s) {
  bool ok = true;
  for (int i = 0; i < int(int(s.size()) - 1); i++)
    ok &= (abs(s[i] - s[i + 1]) != 1);
  return ok;
}
int main() {
  int T;
  scanf("%d", &T);
  static char buf[120];
  for (int _ = 0; _ < int(T); _++) {
    scanf("%s", buf);
    string s = buf;
    string odd = "", even = "";
    for (int i = 0; i < int(s.size()); i++) {
      if (s[i] % 2 == 0)
        odd += s[i];
      else
        even += s[i];
    }
    sort(odd.begin(), odd.end());
    sort(even.begin(), even.end());
    if (check(odd + even))
      printf("%s\n", (odd + even).c_str());
    else if (check(even + odd))
      printf("%s\n", (even + odd).c_str());
    else
      puts("No answer");
  }
  return 0;
}
