#include <bits/stdc++.h>
using namespace std;
const int vx[4] = {0, 1, 0, -1};
const int vy[4] = {1, 0, -1, 0};
void init() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}
int main() {
  int n;
  cin >> n;
  while (n--) {
    string s;
    int m = 0;
    cin >> s;
    sort(s.begin(), s.end());
    vector<char> v;
    string ans;
    for (int i = (int)0; i < (int)s.size(); i++) {
      v.push_back(s[i]);
    }
    ans.push_back(v[0]);
    v.erase(v.begin());
    while (!v.empty()) {
      if (abs(v[0] - ans[ans.size() - 1]) != 1) {
        ans.push_back(v[0]);
        v.erase(v.begin());
        m = 0;
      } else if (abs(v[0] - ans[0]) != 1) {
        ans.insert(ans.begin(), v[0]);
        v.erase(v.begin());
        m = 0;
      } else {
        v.push_back(v[0]);
        v.erase(v.begin());
        m++;
      }
      if (m > v.size()) break;
    }
    if (!v.empty()) {
      cout << "No answer" << endl;
    } else {
      cout << ans << endl;
    }
  }
}
