#include <bits/stdc++.h>
using namespace std;
bool check(string& a) {
  for (int i = 1; i < a.size(); i++) {
    if (abs(a[i] - a[i - 1]) == 1) return false;
  }
  return true;
}
string gen(string a) {
  if (check(a)) return a;
  while (next_permutation(a.begin(), a.end())) {
    if (check(a)) return a;
  }
  return "";
}
string print(string& t, map<char, int>& cnt) {
  string res;
  for (auto it : t) {
    res += string(cnt[it], it);
  }
  return res;
}
void solve() {
  string in;
  cin >> in;
  map<char, int> cnt;
  for (char i : in) cnt[i]++;
  string res;
  for (auto it : cnt) {
    res += it.first;
  }
  if (res.size() <= 8) {
    string temp = gen(res);
    if (temp.empty()) {
      cout << "No answer" << endl;
      return;
    }
    cout << print(temp, cnt) << endl;
    return;
  }
  string t;
  for (int i = 0; i < res.size(); i += 2) {
    t += res[i];
  }
  for (int i = 1; i < res.size(); i += 2) {
    t += res[i];
  }
  cout << print(t, cnt) << endl;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
}
