import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.traits;
import std.random;

void test () {
  auto s = readln.strip;
  int[26] c;
  foreach (i; s) {
    ++c[i.to!int - 97];
  }
  auto x = iota (0, 26, 2), y = iota (1, 26, 2);
  auto r1 = x.filter!(a => c[a] > 0);
  auto r2 = y.filter!(a => c[a] > 0);
  void p (int k) {
    write (replicate ([(97+ k).to!char], c[k]));
  }
  void o(T) (T r) {
    foreach (k; r) {
      p (k);
    }
    writeln;
  }
  if (r1.empty) {
    o (r2);
    return;
  }
  if (r2.empty) {
    o (r1);
    return;
  }
  foreach (i; r1) {
    foreach (j; r2) {
      if (abs (i - j) > 1) {
        foreach (k; r1) {
          if (k != i) p (k);
        }
        p (i);
        p (j);
        foreach (k; r2) {
          if (k != j) p (k);
        }
        writeln;
        return;
      }
    }
  }
  writeln ("No answer");
}

void main() {
  immutable nt = readln.strip.to!int;
  foreach (tid; 0 .. nt) {
    test ();
  }
}

