#include <bits/stdc++.h>
using namespace std;
int in() {
  int ret;
  cin >> ret;
  return ret;
}
const int N = 2e5 + 10, INF = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int t = in();
  while (t--) {
    string second;
    cin >> second;
    sort(second.begin(), second.end());
    string ans = "", tmp = "";
    for (int i = 0; i < second.size(); i++) {
      if ((int)second[i] % 2)
        ans += second[i];
      else
        tmp += second[i];
    }
    int a = ans.size(), b = tmp.size();
    if (a && b && abs((int)ans[a - 1] - (int)tmp[0]) == 1 &&
        abs((int)tmp[b - 1] - (int)ans[0]) == 1)
      cout << "No answer" << '\n';
    else {
      if (!a || !b || (a && b && abs((int)ans[a - 1] - (int)tmp[0]) != 1))
        ans += tmp;
      else {
        tmp += ans;
        ans = tmp;
      }
      cout << ans << '\n';
    }
  }
  return 0;
}
