#include <bits/stdc++.h>
using namespace std;
const int maxn = 201010;
long long n, i, j, k, l, m, a[1010];
string s, sa, sb;
int main() {
  cin >> n;
  while (n--) {
    sa = "";
    sb = "";
    cin >> s;
    for (i = 0; i < s.size(); i++) {
      if ((s[i] - 'a') % 2 == 0) {
        sa += s[i];
      } else {
        sb += s[i];
      }
    }
    sort(sa.begin(), sa.end());
    sort(sb.begin(), sb.end());
    reverse(sb.begin(), sb.end());
    reverse(sa.begin(), sa.end());
    string sx = sa + sb, sy = sb + sa;
    long long x = 0, y = 0;
    for (i = 0; i < sx.size() - 1; i++) {
      if (abs(sx[i] - sx[i + 1]) == 1) {
        x = 1;
        break;
      }
    }
    for (i = 0; i < sy.size() - 1; i++) {
      if (abs(sy[i] - sy[i + 1]) == 1) {
        y = 1;
        break;
      }
    }
    if (x == 1 && y == 1) {
      cout << "No answer";
    } else if (x == 0) {
      cout << sx;
    } else
      cout << sy;
    cout << "\n";
  }
}
