Problem: Integer factorisation is hard. The RSA Factoring Challenge offered $100 000 for factoring RSA-1024, a 1024-bit long product of two prime numbers. To this date, nobody was able to claim the prize. We want you to factorise a 1024-bit number.

Since your programming language of choice might not offer facilities for handling large integers, we will provide you with a very simple calculator. 

To use this calculator, you can print queries on the standard output and retrieve the results from the standard input. The operations are as follows: 

  * + x y where x and y are integers between 0 and n-1. Returns (x+y) mod n. 
  * - x y where x and y are integers between 0 and n-1. Returns (x-y) mod n. 
  * * x y where x and y are integers between 0 and n-1. Returns (x ⋅ y) mod n. 
  * / x y where x and y are integers between 0 and n-1 and y is coprime with n. Returns (x ⋅ y^{-1}) mod n where y^{-1} is multiplicative inverse of y modulo n. If y is not coprime with n, then -1 is returned instead. 
  * sqrt x where x is integer between 0 and n-1 coprime with n. Returns y such that y^2 mod n = x. If there are multiple such integers, only one of them is returned. If there are none, -1 is returned instead. 
  * ^ x y where x and y are integers between 0 and n-1. Returns {x^y mod n}. 



Find the factorisation of n that is a product of between 2 and 10 distinct prime numbers, all of form 4x + 3 for some integer x.

Because of technical issues, we restrict number of requests to 100.

Input

The only line contains a single integer n (21 ≤ n ≤ 2^{1024}). It is guaranteed that n is a product of between 2 and 10 distinct prime numbers, all of form 4x + 3 for some integer x.

Output

You can print as many queries as you wish, adhering to the time limit (see the Interaction section for more details). 

When you think you know the answer, output a single line of form ! k p_1 p_2 ... p_k, where k is the number of prime factors of n, and p_i are the distinct prime factors. You may print the factors in any order.

Hacks input

For hacks, use the following format:. 

The first should contain k (2 ≤ k ≤ 10) — the number of prime factors of n. 

The second should contain k space separated integers p_1, p_2, ..., p_k (21 ≤ n ≤ 2^{1024}) — the prime factors of n. All prime factors have to be of form 4x + 3 for some integer x. They all have to be distinct. 

Interaction

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



The number of queries is not limited. However, your program must (as always) fit in the time limit. The run time of the interactor is also counted towards the time limit. The maximum runtime of each query is given below.

  * + x y — up to 1 ms. 
  * - x y — up to 1 ms. 
  * * x y — up to 1 ms. 
  * / x y — up to 350 ms. 
  * sqrt x — up to 80 ms. 
  * ^ x y — up to 350 ms. 



Note that the sample input contains extra empty lines so that it easier to read. The real input will not contain any empty lines and you do not need to output extra empty lines.

Example

Input

21

7

17

15

17

11

-1

15



Output

+ 12 16

- 6 10

* 8 15

/ 5 4

sqrt 16

sqrt 5

^ 6 12

! 2 3 7

Note

We start by reading the first line containing the integer n = 21. Then, we ask for: 

  1. (12 + 16) mod 21 = 28 mod 21 = 7. 
  2. (6 - 10) mod 21 = -4 mod 21 = 17. 
  3. (8 ⋅ 15) mod 21 = 120 mod 21 = 15. 
  4. (5 ⋅ 4^{-1}) mod 21 = (5 ⋅ 16) mod 21 = 80 mod 21 = 17. 
  5. Square root of 16. The answer is 11, as (11 ⋅ 11) mod 21 = 121 mod 21 = 16. Note that the answer may as well be 10. 
  6. Square root of 5. There is no x such that x^2 mod 21 = 5, so the output is -1. 
  7. (6^{12}) mod 21 = 2176782336 mod 21 = 15. 



We conclude that our calculator is working, stop fooling around and realise that 21 = 3 ⋅ 7.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
using cat = long long;
string add(string a, string b) {
  vector<char> v(max(a.length(), b.length()), 0);
  for (int i = 0; i < (int)a.length(); i++)
    v[(int)a.length() - 1 - i] += a[i] - '0';
  for (int i = 0; i < (int)b.length(); i++)
    v[(int)b.length() - 1 - i] += b[i] - '0';
  for (int i = 0; i < (int)v.size(); i++) {
    if (v[i] < 10) continue;
    if (i == (int)v.size() - 1) v.push_back(0);
    v[i + 1] += v[i] / 10;
    v[i] %= 10;
  }
  while ((int)v.size() > 1 && v.back() == 0) v.pop_back();
  string ret;
  for (int i = (int)v.size() - 1; i >= 0; i--) ret += char('0' + v[i]);
  return ret;
}
bool cmp(string a, string b) {
  if (a.length() > b.length()) return true;
  if (a.length() < b.length()) return false;
  for (int i = 0; i < (int)a.length(); i++)
    if (a[i] != b[i]) return a[i] > b[i];
  return true;
}
string sub(string a, string b) {
  vector<char> v(max(a.length(), b.length()), 0);
  for (int i = 0; i < (int)a.length(); i++)
    v[(int)a.length() - 1 - i] += a[i] - '0';
  for (int i = 0; i < (int)b.length(); i++)
    v[(int)b.length() - 1 - i] -= b[i] - '0';
  for (int i = 0; i < (int)v.size(); i++) {
    if (v[i] < 10 && v[i] >= 0) continue;
    if (i == (int)v.size() - 1) v.push_back(0);
    if (v[i] < 0) {
      v[i + 1] -= (-v[i]) / 10 + 1;
      v[i] += ((-v[i]) / 10 + 1) * 10;
    }
    if (v[i] >= 10) {
      v[i + 1] += v[i] / 10;
      v[i] %= 10;
    }
  }
  while ((int)v.size() > 1 && v.back() == 0) v.pop_back();
  string ret;
  for (int i = (int)v.size() - 1; i >= 0; i--) ret += char('0' + v[i]);
  return ret;
}
string mod(string a, string b) {
  static vector<string> pw;
  pw = {b};
  while (cmp(a, pw.back())) {
    a = sub(a, pw.back());
    pw.push_back(add(pw.back(), pw.back()));
  }
  while (cmp(a, b)) {
    if (cmp(a, pw.back())) {
      a = sub(a, pw.back());
      continue;
    }
    pw.pop_back();
  }
  return a;
}
string div(string a, string b) {
  static vector<string> pw;
  static vector<string> mul;
  pw = {b};
  mul = {"1"};
  string res = "0";
  while (cmp(a, pw.back())) {
    a = sub(a, pw.back());
    res = add(res, mul.back());
    pw.push_back(add(pw.back(), pw.back()));
    mul.push_back(add(mul.back(), mul.back()));
  }
  while (cmp(a, b)) {
    if (cmp(a, pw.back())) {
      a = sub(a, pw.back());
      res = add(res, mul.back());
      continue;
    }
    pw.pop_back();
    mul.pop_back();
  }
  return res;
}
string gcd(string a, string b) {
  while (a != "0") {
    b = mod(b, a);
    swap(a, b);
  }
  return b;
}
int main() {
  cin.sync_with_stdio(0);
  cin.tie(0);
  cout << fixed << setprecision(10);
  string N;
  cin >> N;
  srand(N.length());
  vector<string> fac(1, N);
  for (int i = 0; i < 30; i++) {
    string x;
    for (int j = 0; j < 150; j++) {
      if (j == 0)
        x += ('1' + rand() % 9);
      else
        x += ('0' + rand() % 10);
    }
    x = mod(x, N);
    cout << "* " << x << " " << x << endl;
    string a;
    cin >> a;
    cout << "sqrt " << a << endl;
    string y;
    cin >> y;
    if (x == y) continue;
    if (y != "-1" && add(x, y) == N) continue;
    string d = (y == "-1") ? x : add(x, y);
    vector<string> fac_nw;
    for (int j = 0; j < (int)fac.size(); j++) {
      string c = gcd(fac[j], d);
      if (c != "1" && c != fac[j]) {
        fac_nw.push_back(c);
        fac_nw.push_back(div(fac[j], c));
      } else
        fac_nw.push_back(fac[j]);
    }
    fac = fac_nw;
  }
  cout << "! " << fac.size() << "\n";
  for (int i = 0; i < (int)fac.size(); i++) cout << fac[i] << "\n";
  return 0;
}