Problem: This is an interactive problem.

We have hidden an integer 1 ≤ X ≤ 10^{9}. You don't have to guess this number. You have to find the number of divisors of this number, and you don't even have to find the exact number: your answer will be considered correct if its absolute error is not greater than 7 or its relative error is not greater than 0.5. More formally, let your answer be ans and the number of divisors of X be d, then your answer will be considered correct if at least one of the two following conditions is true:

  * | ans - d | ≤ 7;
  * 1/2 ≤ ans/d ≤ 2.



You can make at most 22 queries. One query consists of one integer 1 ≤ Q ≤ 10^{18}. In response, you will get gcd(X, Q) — the greatest common divisor of X and Q.

The number X is fixed before all queries. In other words, interactor is not adaptive.

Let's call the process of guessing the number of divisors of number X a game. In one test you will have to play T independent games, that is, guess the number of divisors T times for T independent values of X.

Input

The first line of input contains one integer T (1 ≤ T ≤ 100) — the number of games.

Interaction

To make a query print a line "? Q" (1 ≤ Q ≤ 10^{18}). After that read one integer gcd(X, Q). You can make no more than 22 such queries during one game.

If you are confident that you have figured out the number of divisors of X with enough precision, you can print your answer in "! ans" format. ans have to be an integer. If this was the last game, you have to terminate the program, otherwise you have to start the next game immediately. Note that the interactor doesn't print anything in response to you printing answer.

After printing a query do not forget to output end of line and flush the output. 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 documentation for other languages.



Hacks

To hack, use the following format:

The first line contains one integer T (1 ≤ T ≤ 100) — the number of games.

Each of the next T lines contains one integer X (1 ≤ X ≤ 10^{9}) — the hidden number.

So the example has the form 
    
    
      
    2  
    998244353  
    4194304  
    

Example

Input


2

1

1

1


1024

1048576

4194304


Output



? 982306799268821872

? 230856864650023977

? 134690134760714371

! 5
? 1024

? 1048576

? 1073741824

! 42

Note

Why the limitation for number of queries is 22 exactly? Maybe the problem author is a Taylor Swift fan.

Let's look at the example.

In the first game X = 998 244 353 is hidden. Would be hard to guess this, right? This number is prime, so the number of its divisors is 2. The solution has made several random queries, and all the responses turned out to be 1 (strange things, not even one of three random numbers is divisible by 998 244 353). It's fare to assume that the hidden number doesn't have many divisors, so the solution has answered 5. Why not. This answer will be considered correct since | 5 - 2 | = 3 ≤ 7.

In the second game X = 4 194 304 = 2^{22} is hidden, it has 23 divisors. The solution has made queries 1024 = 2^{10}, 1 048 576 =2^{20}, 1 073 741 824 = 2^{30} and got responses 1024 = 2^{10}, 1 048 576 =2^{20}, 4 194 304 = 2^{22}, respectively. Then the solution got completely confused and answered the answer to The Ultimate Question of Life, the Universe, and Everything. This answer will be considered correct since 1/2 ≤ 42/23 ≤ 2.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using int64 = long long int;
template <typename T>
void chmax(T &a, T b) {
  a = max(a, b);
}
template <typename T>
void chmin(T &a, T b) {
  a = min(a, b);
}
template <typename T>
void chadd(T &a, T b) {
  a = a + b;
}
int dx[] = {0, 0, 1, -1};
int dy[] = {1, -1, 0, 0};
const int INF = 1LL << 29;
const ll LONGINF = 1LL << 60;
const ll MOD = 1000000007LL;
ll ask_to_judge(ll Q) {
  printf("? %lld\n", Q);
  fflush(stdout);
  ll g;
  scanf("%lld", &g);
  return g;
}
void answer(ll ans) {
  printf("! %lld\n", ans);
  fflush(stdout);
}
vector<pair<ll, vector<int> > > get_good_ints() {
  const int MAXP = 1010;
  vector<bool> is_prime(MAXP, true);
  int idx = 0;
  set<pair<ll, vector<int> > > S;
  for (int i = 2; i < MAXP; i++) {
    if (!is_prime[i]) continue;
    if (i >= 794) break;
    S.emplace(make_pair(i, vector<int>(1, i)));
    for (int k = i << 1; k < MAXP; k += i) is_prime[k] = false;
  }
  vector<pair<ll, vector<int> > > V;
  while (S.size()) {
    auto itr = S.rbegin();
    ll v1 = itr->first;
    vector<int> a1 = itr->second;
    itr = next(itr);
    ll v2 = -1;
    vector<int> a2;
    while (itr != S.rend()) {
      ll t2 = itr->first, m;
      if (__builtin_mul_overflow(v1, t2, &m) or m > (ll)1e18) {
        itr = next(itr);
        continue;
      }
      v2 = t2;
      a2 = itr->second;
      break;
    }
    if (v2 < 0) {
      S.erase(make_pair(v1, a1));
      V.emplace_back(v1, a1);
      continue;
    }
    S.erase(make_pair(v1, a1));
    S.erase(make_pair(v2, a2));
    ll m = v1 * v2;
    if (a1.size() < a2.size()) swap(a1, a2);
    for (auto e : a2) a1.emplace_back(e);
    S.emplace(m, a1);
  }
  return V;
}
void solve(const vector<pair<ll, vector<int> > > &good_ints) {
  ll prod = 1;
  vector<int> primes;
  int q1 = good_ints.size();
  for (int i = 0; i < q1; i++) {
    fprintf(stderr, "#");
    for (auto p : good_ints[i].second) {
      fprintf(stderr, " %d", p);
    }
    fprintf(stderr, "\n");
    ll res = ask_to_judge(good_ints[i].first);
    for (auto p : good_ints[i].second) {
      if (res % p == 0) primes.emplace_back(p), prod *= p;
    }
  }
  ll MAXT = (ll)1e9, ans = 2;
  vector<ll> g;
  for (auto p : primes) {
    ll others = prod / p, m = 1;
    while (m * others * p <= MAXT) m *= p;
    g.emplace_back(m);
  }
  size_t l = 0;
  while (l < g.size()) {
    size_t r = l;
    ll m = 1;
    fprintf(stderr, "#");
    while (r < g.size()) {
      ll t;
      if (__builtin_mul_overflow(m, g[r], &t) or t > (ll)1e18) break;
      fprintf(stderr, " %d", primes[r]);
      m *= g[r++];
    }
    fprintf(stderr, "\n");
    ll res = ask_to_judge(m);
    for (size_t k = l; k < r; k++) {
      ll p = primes[k], c = 0;
      while (res % p == 0) res /= p, c++;
      ans *= (c + 1);
    }
    swap(l, r);
  }
  answer(ans);
}
void show_primes() {
  const int MAXP = 100010;
  vector<bool> is_prime(MAXP, true);
  int idx = 0;
  set<pair<ll, vector<int> > > S;
  for (int i = 2; i < MAXP; i++) {
    if (!is_prime[i]) continue;
    if (i >= 556) break;
    S.emplace(make_pair(i, vector<int>(1, i)));
    for (int k = i << 1; k < MAXP; k += i) is_prime[k] = false;
  }
  while (true) {
    if (S.size() == 1) break;
    auto itr = S.begin();
    ll v1 = itr->first;
    vector<int> a1 = itr->second;
    itr = next(itr);
    ll v2 = itr->first;
    vector<int> a2 = itr->second;
    ll m;
    if (__builtin_mul_overflow(v1, v2, &m) or m > (ll)1e18) break;
    itr = S.begin();
    itr = S.erase(itr);
    itr = S.erase(itr);
    if (a1.size() < a2.size()) swap(a1, a2);
    for (auto e : a2) a1.emplace_back(e);
    S.emplace(m, a1);
  }
  printf("cnt = %zu\n", S.size());
}
int main() {
  vector<pair<ll, vector<int> > > good_ints = get_good_ints();
  fprintf(stderr, "# good_ints = %zu\n", good_ints.size());
  int T;
  scanf("%d", &T);
  while (T--) solve(good_ints);
  return 0;
}