Problem: You are given a string, consisting of lowercase Latin letters.

A pair of neighbouring letters in a string is considered ugly if these letters are also neighbouring in a alphabet. For example, string "abaca" contains ugly pairs at positions (1, 2) — "ab" and (2, 3) — "ba". Letters 'a' and 'z' aren't considered neighbouring in a alphabet.

Can you rearrange the letters of a given string so that there are no ugly pairs? You can choose any order of the letters of the given string but you can't add any new letters or remove the existing ones. You can also leave the order the same.

If there are multiple answers, print any of them.

You also have to answer T separate queries.

Input

The first line contains a single integer T (1 ≤ T ≤ 100) — the number of queries.

Each of the next T lines contains string s (1 ≤ |s| ≤ 100) — the string for the next query. It is guaranteed that it contains only lowercase Latin letters.

Note that in hacks you have to set T = 1.

Output

Print T lines. The i-th line should contain the answer to the i-th query.

If the answer for the i-th query exists, then print such a rearrangment of letters of the given string that it contains no ugly pairs. You can choose any order of the letters of the given string but you can't add any new letters or remove the existing ones. You can also leave the order the same.

If there are multiple answers, print any of them.

Otherwise print "No answer" for that query.

Example

Input


4
abcd
gg
codeforces
abaca


Output


cadb
gg
codfoerces
No answer

Note

In the first example answer "bdac" is also correct.

The second example showcases the fact that only neighbouring in alphabet letters are not allowed. The same letter is ok.

There are lots of valid answers for the third example.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using ull = uint64_t;
constexpr ll INF = 1000000000;
namespace utils {
class Repeater {
  int st;
  int ed;
  int d;

 public:
  class rep_iterator {
    int i;
    int d;

   public:
    rep_iterator(int x, int pd) : i(x), d(pd) {}
    int& operator*() { return i; }
    bool operator==(const rep_iterator& k) const { return i == k.i; }
    bool operator!=(const rep_iterator& k) const { return i != k.i; }
    rep_iterator& operator++() {
      i += d;
      return *this;
    }
  };
  explicit Repeater(int N) : st(0), ed(N), d(1) {}
  Repeater(int b, int e) : st(b), ed(e), d(1) {
    if (st > ed) {
      st--;
      ed--;
      d = -1;
    }
  }
  rep_iterator begin() const { return rep_iterator(st, d); }
  rep_iterator end() const { return rep_iterator(ed, d); }
};
template <class T, class Compare>
using p_queue = priority_queue<T, vector<T>, Compare>;
template <class T>
using min_queue = p_queue<T, greater<T>>;
template <class T>
using max_queue = p_queue<T, less<T>>;
template <class T>
bool min_update(T& X, const T& A) {
  if (X > A) {
    X = A;
    return true;
  }
  return false;
}
template <class T>
bool max_update(T& X, const T& A) {
  if (X < A) {
    X = A;
    return true;
  }
  return false;
}
}  // namespace utils
using namespace utils;
void sub_main(istream& is) {
  ll N;
  is >> N;
  if (!is) return;
  for (auto&& i : Repeater(0, N)) {
    string S;
    is >> S;
    vector<int> alp('z' - 'a' + 1);
    for (auto&& c : S) {
      alp[c - 'a']++;
    }
    int count = S.size();
    int prev = -2;
    string ans;
    while (count > 0) {
      int mdeg = -1;
      int mc = -1;
      for (auto&& c : Repeater(0, alp.size())) {
        if (alp[c] == 0) continue;
        if (abs(c - prev) == 1) {
          continue;
        }
        int pre = c == 0 ? alp.back() : alp[c - 1];
        int next = c == alp.size() - 1 ? alp.front() : alp[c + 1];
        if (max_update(mdeg, (pre > 0) + (next > 0))) {
          mc = c;
        }
      }
      if (mc == -1) {
        cout << "No answer\n";
        break;
      }
      prev = mc;
      while (alp[mc] > 0) {
        ans.push_back(mc + 'a');
        alp[mc]--;
        count--;
      }
    }
    if (count == 0) cout << ans << endl;
  }
}
int main(int argc, char* argv[]) {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  cout << setprecision(16) << scientific;
  sub_main(cin);
  return 0;
}