#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  getchar();
  while (n--) {
    char x[105];
    gets(x);
    char x1[105], x2[105];
    int s1 = 0, s2 = 0;
    for (int i = 0; x[i] != 0; i++) {
      if (x[i] % 2)
        x1[s1++] = x[i];
      else
        x2[s2++] = x[i];
    }
    x1[s1] = 0;
    x2[s2] = 0;
    sort(x1, x1 + s1);
    sort(x2, x2 + s2);
    if (s1 == 0 || s2 == 0)
      puts(x);
    else if (abs(x1[0] - x2[s2 - 1]) != 1)
      printf("%s%s\n", x2, x1);
    else if (abs(x2[0] - x1[s1 - 1]) != 1)
      printf("%s%s\n", x1, x2);
    else
      printf("No answer\n");
  }
  return 0;
}
