#include <bits/stdc++.h>
using namespace std;
void query() {
  int cnt[26] = {};
  int num[2][2] = {};
  num[0][0] = num[1][0] = 0x7fffffff;
  char s[105];
  cin >> s;
  int n = strlen(s);
  for (int i = 0; i < n; ++i) {
    s[i] -= 'a';
    ++cnt[s[i]];
    if (s[i] & 1) {
      if (num[1][0] > s[i]) num[1][0] = s[i];
      if (num[1][1] < s[i]) num[1][1] = s[i];
    } else {
      if (num[0][0] > s[i]) num[0][0] = s[i];
      if (num[0][1] < s[i]) num[0][1] = s[i];
    }
  }
  if (abs(num[0][1] - num[1][0]) == 1 && abs(num[0][0] - num[1][1]) == 1) {
    puts("No answer");
    return;
  }
  if (abs(num[0][1] - num[1][0]) == 1) {
    for (int i = 1; i <= 25; i += 2) {
      while (cnt[i]--) printf("%c", i + 'a');
    }
    for (int i = 0; i <= 24; i += 2) {
      while (cnt[i]--) printf("%c", i + 'a');
    }
  } else {
    for (int i = 0; i <= 24; i += 2) {
      while (cnt[i]--) printf("%c", i + 'a');
    }
    for (int i = 1; i <= 25; i += 2) {
      while (cnt[i]--) printf("%c", i + 'a');
    }
  }
  puts("");
}
int main() {
  int t;
  cin >> t;
  while (t--) query();
  return 0;
}
