#include <bits/stdc++.h>
using namespace std;
long long int res, o;
class dop {
 public:
  string s, v;
  long long int n, p, q, r, e;
  void get();
};
void dop::get() {
  cin >> s;
  vector<long long int> a(26, 0);
  n = s.length();
  for (long long int i = 0; i < n; i++) {
    a[s[i] - 'a']++;
  }
  p = 0;
  vector<long long int> b;
  for (long long int i = 0; i < 26; i++) {
    if (a[i] > 0) {
      p++;
      b.push_back(i);
    }
  }
  if (p == 2 && abs(b[1] - b[0]) == 1) {
    cout << "No answer" << '\n';
    return;
  }
  if (p == 3 && abs(b[1] - b[0]) == 1 && abs(b[2] - b[1]) == 1) {
    cout << "No answer" << '\n';
    return;
  }
  if (p == 3 && abs(b[1] - b[0]) == 1) {
    v = "";
    for (long long int i = 0; i < a[b[0]]; i++) {
      v += ('a' + b[0]);
    }
    for (long long int i = 0; i < a[b[2]]; i++) {
      v += ('a' + b[2]);
    }
    for (long long int i = 0; i < a[b[1]]; i++) {
      v += ('a' + b[1]);
    }
    cout << v << '\n';
    return;
  }
  if (p == 3 && abs(b[2] - b[1]) == 1) {
    v = "";
    for (long long int i = 0; i < a[b[1]]; i++) {
      v += ('a' + b[1]);
    }
    for (long long int i = 0; i < a[b[0]]; i++) {
      v += ('a' + b[0]);
    }
    for (long long int i = 0; i < a[b[2]]; i++) {
      v += ('a' + b[2]);
    }
    cout << v << '\n';
    return;
  }
  if (p == 1) {
    cout << s << '\n';
    return;
  }
  v = "";
  if (p % 2 == 0) {
    q = 0;
    e = p;
    p = (p / 2);
    r = 0;
    while (r < e) {
      if (r % 2 == 0) {
        r++;
        for (long long int i = 0; i < a[b[p]]; i++) {
          v += ('a' + b[p]);
        }
        p++;
      } else {
        r++;
        for (long long int i = 0; i < a[b[q]]; i++) {
          v += ('a' + b[q]);
        }
        q++;
      }
    }
    cout << v << '\n';
    return;
  } else {
    q = 0;
    e = p;
    p = (p / 2);
    r = 0;
    while (r < e) {
      if (r % 2 == 0) {
        r++;
        for (long long int i = 0; i < a[b[p]]; i++) {
          v += ('a' + b[p]);
        }
        p++;
      } else {
        r++;
        for (long long int i = 0; i < a[b[q]]; i++) {
          v += ('a' + b[q]);
        }
        q++;
      }
    }
    cout << v << '\n';
    return;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t = 1;
  cin >> t;
  dop obj[t];
  for (long long int i = 0; i < t; i++) {
    obj[i].get();
  }
  return 0;
}
