#include <bits/stdc++.h>
using namespace std;
const int maxn = 110;
string code;
int q;
bool check(string a) {
  for (int i = 1; i < a.length(); i++) {
    if (abs(int(a[i] - 'a') - int(a[i - 1] - 'a')) == 1) return false;
  }
  return true;
}
int main() {
  cin >> q;
  while (q--) {
    cin >> code;
    map<char, int> cnt;
    for (int i = 0; i < code.length(); i++) {
      cnt[code[i]]++;
    }
    string even = "", odd = "";
    for (char a = 'a'; a <= 'z'; a += 2) {
      if (cnt[a] > 0) odd += a;
    }
    for (char a = 'b'; a <= 'z'; a += 2) {
      if (cnt[a] > 0) even += a;
    }
    if (check(even + odd)) {
      string str = even + odd;
      for (int i = 0; i < str.length(); i++) {
        for (int j = 0; j < cnt[str[i]]; j++) {
          cout << str[i];
        }
      }
      cout << "\n";
    } else if (check(odd + even)) {
      string str = odd + even;
      for (int i = 0; i < str.length(); i++) {
        for (int j = 0; j < cnt[str[i]]; j++) {
          cout << str[i];
        }
      }
      cout << "\n";
    } else {
      cout << "No answer\n";
    }
  }
  return 0;
}
