#include <bits/stdc++.h>
using namespace std;
bool ok(string s) {
  for (int i = 0; i < s.length() - 1; i++) {
    if (abs(s[i] - s[i + 1]) == 1) {
      return false;
    }
  }
  return true;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    long long int cnt[26] = {0};
    for (int i = 0; i < s.length(); i++) {
      cnt[s[i] - 'a']++;
    }
    string ans1 = "";
    for (int i = 0; i < 26; i += 2) {
      for (int j = 0; j < cnt[i]; j++) ans1 += char(i + 'a');
    }
    string ans2 = "";
    for (int i = 1; i < 26; i += 2) {
      for (int j = 0; j < cnt[i]; j++) ans2 += char(i + 'a');
    }
    if (ok(ans1 + ans2)) {
      cout << ans1 + ans2 << '\n';
    } else if (ok(ans2 + ans1)) {
      cout << ans2 + ans1 << '\n';
    } else {
      cout << "No answer" << '\n';
    }
  }
}
