Problem: [MisoilePunch♪ - 彩](https://www.youtube.com/watch?v=5VleIdkEeak)

This is an interactive problem!

On a normal day at the hidden office in A.R.C. Markland-N, Rin received an artifact, given to her by the exploration captain Sagar.

After much analysis, she now realizes that this artifact contains data about a strange flower, which has existed way before the New Age. However, the information about its chemical structure has been encrypted heavily.

The chemical structure of this flower can be represented as a string p. From the unencrypted papers included, Rin already knows the length n of that string, and she can also conclude that the string contains at most three distinct letters: "C" (as in Carbon), "H" (as in Hydrogen), and "O" (as in Oxygen).

At each moment, Rin can input a string s of an arbitrary length into the artifact's terminal, and it will return every starting position of s as a substring of p.

However, the artifact has limited energy and cannot be recharged in any way, since the technology is way too ancient and is incompatible with any current A.R.C.'s devices. To be specific:

  * The artifact only contains 7/5 units of energy. 
  * For each time Rin inputs a string s of length t, the artifact consumes (1)/(t^2) units of energy. 
  * If the amount of energy reaches below zero, the task will be considered failed immediately, as the artifact will go black forever. 



Since the artifact is so precious yet fragile, Rin is very nervous to attempt to crack the final data. Can you give her a helping hand?

Interaction

The interaction starts with a single integer t (1 ≤ t ≤ 500), the number of test cases. The interaction for each testcase is described below:

First, read an integer n (4 ≤ n ≤ 50), the length of the string p.

Then you can make queries of type "? s" (1 ≤ |s| ≤ n) to find the occurrences of s as a substring of p.

After the query, you need to read its result as a series of integers in a line:

  * The first integer k denotes the number of occurrences of s as a substring of p (-1 ≤ k ≤ n). If k = -1, it means you have exceeded the energy limit or printed an invalid query, and you need to terminate immediately, to guarantee a "Wrong answer" verdict, otherwise you might get an arbitrary verdict because your solution will continue to read from a closed stream.
  * The following k integers a_1, a_2, …, a_k (1 ≤ a_1 < a_2 < … < a_k ≤ n) denote the starting positions of the substrings that match the string s.



When you find out the string p, print "! p" to finish a test case. This query doesn't consume any energy. The interactor will return an integer 1 or 0. If the interactor returns 1, you can proceed to the next test case, or terminate the program if it was the last testcase.

If the interactor returns 0, it means that your guess is incorrect, and you should to terminate to guarantee a "Wrong answer" verdict.

Note that in every test case the string p is fixed beforehand and will not change during the queries, i.e. the interactor is not adaptive.

After printing any query do not forget to print end of line and flush the output. Otherwise, you might get Idleness limit exceeded. To do this, use:

  * fflush(stdout) or cout.flush() in C++;
  * System.out.flush() in Java;
  * flush(output) in Pascal;
  * stdout.flush() in Python;
  * see the documentation for other languages.



Hacks

For hack, use the following format. Note that you can only hack with one test case:

The first line should contain a single integer t (t = 1).

The second line should contain an integer n (4 ≤ n ≤ 50) — the string's size.

The third line should contain a string of size n, consisting of characters "C", "H" and "O" only. This is the string contestants will have to find out.

Examples

Input


1
4

2 1 2

1 2

0

1

Output




? C

? CH

? CCHO

! CCHH



Input


2
5

0

2 2 3

1
8

1 5

1 5

1 3

2 1 2

1

Output




? O

? HHH

! CHHHH


? COO

? COOH

? HCCOO

? HH

! HHHCCOOH

Note

Note that the example interaction contains extra empty lines so that it's easier to read. The real interaction doesn't contain any empty lines and you shouldn't print any extra empty lines as well.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
inline long long umax(long long a, long long b) { return a > b ? a : b; }
inline long long umin(long long a, long long b) { return a < b ? a : b; }
inline long long uabs(long long x) { return x > 0 ? x : -x; }
inline long long qpow(long long n, long long e = 1000000007 - 2,
                      long long p = 1000000007) {
  register long long res = 1;
  while (e) {
    if (e & 1) res = res * n % p;
    n = n * n % p;
    e >>= 1;
  }
  return res;
}
long long T, n, k[25], a[25][55], tmp;
char ans[55];
const char ele[] = {0, 'C', 'H', 'O'};
const string q[] = {"", "CC", "CH", "CO", "HO", "OH", "HH", "OO", "HC", "OC"};
inline void Ray(char ch, int l, int r) {
  for (int i = l; i <= r; ++i) cout << ch;
}
inline void ark(int l, int r) {
  for (int i = l; i <= r; ++i) cout << ans[i];
}
stringstream st;
int main() {
  cin >> T;
  while (T-- > 0) {
    cin >> n;
    memset(ans, 0, sizeof(ans));
    if (n == 4) {
      for (int i = 1; i <= 4; ++i) {
        cout << "? " << q[i] << endl;
        cin >> k[i];
        if (!(~k[i])) return 0;
        for (int j = 1; j <= k[i]; ++j) cin >> a[i][j];
        for (int j = 1; j <= k[i]; ++j)
          ans[a[i][j]] = q[i][0], ans[a[i][j] + 1] = q[i][1];
      }
      if (ans[1] && ans[2] && ans[3] && ans[4])
        cout << "! ", ark(1, 4), cout << endl;
      else if (!(k[1] || k[2] || k[3] || k[4])) {
        cout << "? HHH" << endl;
        cin >> k[5];
        if (k[5]) {
          cin >> a[5][1];
          if (k[5] == 2)
            cin >> a[5][2], cout << "! HHHH" << endl;
          else if (a[5][1] == 2)
            cout << "! OHHH" << endl;
          else
            cout << "! HHHC" << endl;
        } else {
          cout << "? OOO" << endl;
          cin >> k[6];
          if (k[6]) {
            cin >> a[6][1];
            if (k[6] == 2)
              cin >> a[6][2], cout << "! OOOO" << endl;
            else {
              cout << "? OOOC" << endl, cin >> k[7];
              if (k[7])
                cin >> a[7][1], cout << "! OOOC" << endl;
              else
                cout << "! OOOH" << endl;
            }
          } else {
            cout << "? OHHC" << endl;
            cin >> k[7];
            if (k[7])
              cin >> a[7][1], cout << "! OHHC" << endl;
            else {
              cout << "? OOHH" << endl;
              cin >> k[8];
              if (k[8])
                cin >> a[8][1], cout << "! OOHH" << endl;
              else
                cout << "! OOHC" << endl;
            }
          }
        }
      } else {
        if ((!ans[1]) && ans[2] && ans[3] && ans[4]) {
          cout << "? H" << ans[2] << ans[3] << ans[4] << endl;
          cin >> k[5];
          if (k[5])
            cin >> a[5][1], cout << "! H" << ans[2] << ans[3] << ans[4] << endl;
          else
            cout << "! O" << ans[2] << ans[3] << ans[4] << endl;
        }
        if (ans[1] && ans[2] && ans[3] && (!ans[4])) {
          st.clear();
          st << ans[1] << ans[2] << ans[3];
          string s;
          st >> s;
          for (int i = 1; i <= 3; ++i) {
            cout << "? " << s << ele[i] << endl;
            cin >> k[4 + i];
            if (k[4 + i]) {
              cin >> a[4 + i][1];
              cout << "! " << s << ele[i] << endl;
              break;
            }
          }
        }
        if ((!ans[1]) && (!ans[2]) && ans[3] && ans[4]) {
          st.clear();
          st << ans[3] << ans[4];
          string s;
          st >> s;
          for (int i = 5; i <= 7; ++i) {
            cout << "? " << q[i] << s << endl;
            cin >> k[i];
            if (k[i]) {
              cin >> a[i][1];
              cout << "! " << q[i] << s << endl;
              break;
            }
          }
        }
        if (ans[1] && ans[2] && (!ans[3]) && (!ans[4])) {
          st.clear();
          st << ans[1] << ans[2];
          string s;
          st >> s;
          for (int i = 4; i <= 9; ++i) {
            cout << "? " << s << q[i] << endl;
            cin >> k[i + 1];
            if (k[i + 1]) {
              cin >> a[i + 1][1];
              cout << "! " << s << q[i] << endl;
              break;
            }
          }
        }
        if ((!ans[1]) && ans[2] && ans[3] && (!ans[4])) {
          st.clear();
          st << ans[2] << ans[3];
          string s;
          st >> s;
          bool f = 0;
          for (int i = 2; i <= 3; ++i) {
            if (f) break;
            for (int j = 1; j <= 3; ++j) {
              cout << "? " << ele[i] << s << ele[j] << endl;
              cin >> k[i * 3 + j - 2];
              if (k[i * 3 + j - 2]) {
                cin >> a[i * 3 + j - 2][1];
                cout << "! " << ele[i] << s << ele[j] << endl;
                f = 1;
                break;
              }
            }
          }
        }
      }
      cin >> tmp;
      cout.flush();
      if (!tmp) return 0;
      continue;
    }
    for (int i = 1; i <= 5; ++i) {
      cout << "? " << q[i] << endl;
      cin >> k[i];
      if (!(~k[i])) return 0;
      for (int j = 1; j <= k[i]; ++j) cin >> a[i][j];
      for (int j = 1; j <= k[i]; ++j)
        ans[a[i][j]] = q[i][0], ans[a[i][j] + 1] = q[i][1];
    }
    register int tp = 0;
    for (int i = 1; i <= n; ++i) tp += !ans[i];
    if (tp == n) {
      cout << "? ";
      Ray('H', 1, n - 1);
      cout << endl;
      cin >> k[6];
      if (k[6] == 2)
        cin >> a[6][1] >> a[6][2], cout << "! ", Ray('H', 1, n), cout << endl;
      else if (k[6] == 1) {
        cin >> a[6][1], cout << "? ", Ray('H', 1, n - 1), cout << "C" << endl;
        cin >> k[7];
        if (k[7])
          cin >> a[7][1], cout << "! ", Ray('H', 1, n - 1), cout << "C" << endl;
        else
          cout << "! ", Ray('H', 1, n), cout << endl;
      } else {
        cout << "? ", Ray('O', 1, n - 1), cout << "C" << endl;
        cin >> k[7];
        if (k[7])
          cin >> a[7][1], cout << "! ", Ray('O', 1, n - 1), cout << "C" << endl;
        else
          cout << "! ", Ray('O', 1, n), cout << endl;
      }
      cin >> tmp;
      cout.flush();
      if (!tmp) return 0;
      continue;
    }
    for (int i = 2; i <= n - 1; ++i)
      if (ans[i - 1] && !ans[i]) ans[i] = ans[i - 1];
    register int pos = 0;
    for (int i = 1; i <= n - 1; ++i)
      if (!ans[i] && ans[i + 1]) {
        pos = i;
        break;
      }
    if (!pos && ans[n])
      cout << "! ", ark(1, n), cout << endl;
    else if (!pos) {
      cout << "? ";
      ark(1, n - 1);
      cout << "C" << endl;
      cin >> k[6];
      if (k[6])
        cin >> a[6][1], cout << "! ", ark(1, n - 1), cout << "C" << endl;
      else
        cout << "! ", ark(1, n - 1), cout << ans[n - 1] << endl;
    } else if (ans[n]) {
      cout << "? ";
      Ray('H', 1, pos);
      ark(pos + 1, n);
      cout << endl;
      cin >> k[6];
      if (k[6])
        cin >> a[6][1], cout << "! ", Ray('H', 1, pos), ark(pos + 1, n);
      else
        cout << "! ", Ray('O', 1, pos), ark(pos + 1, n);
      cout << endl;
    } else {
      cout << "? ";
      Ray('H', 1, pos);
      ark(pos + 1, n - 1);
      cout << endl;
      cin >> k[6];
      if (k[6]) {
        if (k[6] == 2) {
          cin >> a[6][1] >> a[6][2];
          cout << "! ";
          Ray('H', 1, pos);
          ark(pos + 1, n - 1);
          cout << ans[n - 1] << endl;
        } else {
          cin >> a[6][1];
          cout << "? ";
          Ray('H', 1, pos);
          ark(pos + 1, n - 1);
          cout << "C" << endl;
          cin >> k[7];
          if (k[7]) {
            cin >> a[7][1];
            cout << "! ";
            Ray('H', 1, pos);
            ark(pos + 1, n - 1);
            cout << "C" << endl;
          } else {
            cout << "! ";
            Ray('H', 1, pos);
            ark(pos + 1, n - 1);
            cout << ans[n - 1] << endl;
          }
        }
      } else {
        cout << "? ";
        Ray('O', 1, pos);
        ark(pos + 1, n - 1);
        cout << "C" << endl;
        cin >> k[7];
        if (k[7]) {
          cin >> a[7][1];
          cout << "! ";
          Ray('O', 1, pos);
          ark(pos + 1, n - 1);
          cout << "C" << endl;
        } else {
          cout << "! ";
          Ray('O', 1, pos);
          ark(pos + 1, n - 1);
          cout << ans[n - 1] << endl;
        }
      }
    }
    cin >> tmp;
    cout.flush();
    if (!tmp) return 0;
  }
  return 0;
}