#include <bits/stdc++.h>
using namespace std;
int a[30];
int main() {
  int n;
  cin >> n;
  char s[105];
  while (n--) {
    memset(a, 0, sizeof(a));
    memset(s, '\0', sizeof(s));
    cin >> s;
    int l;
    l = strlen(s);
    for (int i = 0; i < l; i++) a[s[i] - 'a' + 1]++;
    string s1, s2;
    for (int i = 1; i <= 26; i++) {
      if (i % 2 == 0)
        while (a[i]--) s1 += i - 1 + 'a';
      else if (i % 2 == 1)
        while (a[i]--) s2 += i - 1 + 'a';
    }
    if (abs(s1.back() - s2.front()) > 1)
      cout << s1 << s2 << endl;
    else if (abs(s2.back() - s1.front()) > 1)
      cout << s2 << s1 << endl;
    else
      cout << "No answer" << endl;
  }
  return 0;
}
