Problem: It is an interactive problem.

Vasya enjoys solving quizzes. He found a strange device and wants to know how it works.

This device encrypted with the tree (connected undirected graph without cycles) with n vertices, numbered with integers from 1 to n. To solve this quiz you should guess this tree.

Fortunately, this device can make one operation, using which you should guess the cipher. You can give the device an array d_1, d_2, …, d_n of non-negative integers. On the device, there are n lamps, i-th of them is connected with i-th vertex of the tree. For all i the light will turn on the i-th lamp, if there exist such vertex of the tree with number j ≠ i that dist(i, j) ≤ d_j. Let's define dist(i, j) as the distance between vertices i and j in tree or number of edges on the simple path between vertices i and j.

Vasya wants to solve this quiz using ≤ 80 operations with the device and guess the tree. Help him! 

Interaction

In the beginning, your program should read one integer n — the number of vertices of the tree which encrypts the device (2 ≤ n ≤ 1000).

After that, you can make several operations in the following format. To do operation print a symbol"?" (without quotes) and n integers d_1, d_2, …, d_n, separated by spaces after it. Please note, that for all i you can only use the numbers, satisfying the inequality 0 ≤ d_i < n. After that, you should read a string s with length n, consisting of symbols "0" and "1" (without quotes). For all i the symbol s_i is equal to "0", if the lamp on the device, connected with i-th vertex of the tree is switched off and "1" otherwise.

After several operations, you should print guessed tree. To do it print the only symbol "!" (without quotes). In the next n-1 lines print 2 integers a_i, b_i — indexes of the vertices connected by i-th edge of the tree. This numbers should satisfy the conditions 1 ≤ a_i, b_i ≤ n and a_i ≠ b_i. This edges should form a tree, which is equal to the hidden tree. After that, your program should terminate.

It is guaranteed, that in each test the tree is fixed before and won't change depending on your program's operations.

Your program can make from 0 to 80 operations with the device and after that guess the tree equal with the hidden.

If your program will make more than 80 operations it can get any verdict, because it will continue reading from closed input. If your program will make operation or print the answer in the incorrect format, it can get any verdict too. Be careful.

Don't forget to flush the output after printing questions and answers.

To flush the output, you can use: 

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



Hacks:

The first line should contain one integer n — the number of vertices in the tree (2 ≤ n ≤ 1000). Next n-1 lines should contain 2 integers a_i, b_i — indexes of the vertices connected by i-th edge of the tree (1 ≤ a_i, b_i ≤ n, a_i ≠ b_i). All edges should form a tree. Be careful, extra spaces or line breaks are not allowed.

Example

Input


5
00000
11011
11100
10010


Output


? 0 0 0 0 0
? 1 1 2 0 2
? 0 0 0 1 0
? 0 1 0 0 1
!
4 2
1 5
3 4
4 1

Note

It is a picture of the tree which encrypt the device from the first test:

<image>

It is a table of pairwise distances between vertices in this tree:

<image>

  * If you make operation where d = [0, 0, 0, 0, 0], no lamp will switch on, because dist(i, j) > 0 for all i ≠ j. 
  * If you make operation where d = [1, 1, 2, 0, 2], all lamps except the lamp connected with the 3-rd vertex will switch on. For example, lamp connected with the 1-st vertex will switch on, because dist(1, 5) = 1 ≤ 2 = d_5. 
  * If you make operation where d = [0, 0, 0, 1, 0], all lamps except lamps connected with the 4-th and 5-th vertices will switch on. 
  * If you make operation where d = [0, 1, 0, 0, 1], only lamps connected with the 1-st and 4-th vertices will switch on. 

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
const int N = 1010;
const int MAGIC = 777;
const int Q = 1 << 21;
const long long mod = 1e9 + 7;
using namespace std;
int n;
int C;
int dist[N][N];
vector<int> edge[N];
bool off = false;
string query(vector<int> v) {
  assert((int)v.size() == n);
  C += 1;
  if (C > 80) {
    cout << "Too many queries"
         << "\n";
    exit(0);
  }
  string res = "";
  if (off) {
    for (int i = 0; i < n; i++) {
      bool good = false;
      for (int j = 0; j < n; j++) {
        if (i != j) {
          good |= dist[i][j] <= v[j];
        }
      }
      res += char(good + '0');
    }
  } else {
    cout << "?";
    for (int i = 0; i < n; i++) {
      cout << " " << min(v[i], n - 1);
    }
    cout << endl;
    cin >> res;
  }
  for (int i = 0; i < n; i++) {
    res[i] -= '0';
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  if (off) {
    for (int i = 1; i < n; i++) {
      int x, y;
      cin >> x >> y;
      x -= 1;
      y -= 1;
      edge[x].push_back(y);
      edge[y].push_back(x);
    }
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < n; j++) {
        dist[i][j] = 1e9;
      }
      dist[i][i] = 0;
      queue<int> q;
      q.push(i);
      while (!q.empty()) {
        int x = q.front();
        q.pop();
        for (int y : edge[x]) {
          if (dist[i][x] + 1 < dist[i][y]) {
            dist[i][y] = dist[i][x] + 1;
            q.push(y);
          }
        }
      }
    }
  }
  vector<pair<pair<int, int>, vector<int> > > v;
  v.push_back({{0, 0}, {0}});
  v.push_back({{1, n - 1}, {}});
  for (int i = 1; i < n; i++) {
    v.back().second.push_back(i);
  }
  while (true) {
    vector<pair<pair<int, int>, vector<int> > > nv;
    bool done = true;
    for (int i = 0; i < v.size(); i++) {
      if (v[i].first.first == v[i].first.second) {
        nv.push_back(v[i]);
      }
    }
    for (int it : {0, 1}) {
      vector<int> g1(n, 0), g2(n, 0);
      bool now = 0;
      for (int i = 0; i < v.size(); i++) {
        if (v[i].first.first == v[i].first.second || v[i].second.empty()) {
          continue;
        }
        now ^= 1;
        if (now != it) {
          continue;
        }
        done = false;
        int l = v[i].first.first, r = v[i].first.second, m = (l + r) / 2;
        for (int x : v[i - 1].second) {
          g1[x] = m - l + 1;
        }
        for (int x : v[i - 1].second) {
          g2[x] = m - l;
        }
      }
      now = 0;
      string s = query(g1);
      string t = query(g2);
      for (int i = 0; i < v.size(); i++) {
        if (v[i].first.first == v[i].first.second || v[i].second.empty()) {
          continue;
        }
        now ^= 1;
        if (now != it) {
          continue;
        }
        vector<int> a, b, c;
        int l = v[i].first.first, r = v[i].first.second, m = (l + r) / 2;
        for (int x : v[i].second) {
          if (s[x] && !t[x]) {
            b.push_back(x);
          } else if (s[x]) {
            a.push_back(x);
          } else {
            assert(!t[x]);
            c.push_back(x);
          }
        }
        if (!a.empty()) nv.push_back({{l, m - 1}, a});
        if (!b.empty()) nv.push_back({{m, m}, b});
        if (!c.empty()) nv.push_back({{m + 1, r}, c});
      }
    }
    v = nv;
    sort(v.begin(), v.end());
    if (done) {
      break;
    }
  }
  vector<int> res(n, 0);
  for (int it = 0; it < 3; it++) {
    for (int i = 0; (1 << i) < n; i++) {
      vector<int> g(n, 0);
      for (int j = it; j < (int)v.size(); j += 3) {
        for (int x : v[j].second) {
          g[x] = (x >> i) & 1;
        }
      }
      string s = query(g);
      for (int j = it + 1; j < (int)v.size(); j += 3) {
        for (int x : v[j].second) {
          if (s[x]) {
            res[x] |= (1 << i);
          }
        }
      }
    }
  }
  cout << "!" << endl;
  for (int i = 1; i < n; i++) {
    cout << res[i] + 1 << " " << i + 1 << endl;
  }
}