#include <bits/stdc++.h>
using namespace std;
int T;
string s;
int main() {
  cin >> T;
  for (int i = 0; i < T; i++) {
    cin >> s;
    vector<int> memo(26, 0);
    for (int j = 0; j < s.length(); j++) {
      memo[s[j] - 'a']++;
    }
    string res, res2;
    for (int j = 0; j < 26; j += 2) {
      for (int k = 0; k < memo[j]; k++) res += (char)('a' + j);
    }
    for (int j = 1; j < 26; j += 2) {
      for (int k = 0; k < memo[j]; k++) res2 += (char)('a' + j);
    }
    string res3 = res + res2;
    string res4 = res2 + res;
    bool flag = true, flag2 = true;
    ;
    for (int j = 1; j < res3.length(); j++) {
      if (res3[j] - res3[j - 1] == 1 || res3[j - 1] - res3[j] == 1)
        flag = false;
      if (res4[j] - res4[j - 1] == 1 || res4[j - 1] - res4[j] == 1)
        flag2 = false;
    }
    if (flag)
      cout << res3 << endl;
    else if (flag2)
      cout << res4 << endl;
    else
      cout << "No answer" << endl;
  }
  return 0;
}
