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>
using namespace std;
const int N = 1e3 + 2;
vector<int> depth[N];
vector<pair<pair<int, int>, vector<int> > > temp;
vector<pair<int, int> > edge;
vector<pair<vector<int>, vector<int> > > lis;
int ask[N], ans[N], ans1[N];
string s;
void reset(int n) {
  for (int i = 1; i <= n; i++) {
    ask[i] = 0;
  }
}
bool check(int n) {
  for (int i = 1; i <= n; i++) {
    if (ask[i] != 0) {
      return true;
    }
  }
  return false;
}
void query(int n) {
  if (!check(n)) {
    for (int i = 1; i <= n; i++) {
      ans[i] = 0;
    }
    return;
  }
  cout << "? ";
  for (int i = 1; i <= n; i++) {
    cout << ask[i] << ' ';
  }
  cout << endl;
  cin >> s;
  for (int i = 1; i <= n; i++) {
    ans[i] = (s[i - 1] - '0');
  }
}
void query1(int n) {
  if (!check(n)) {
    for (int i = 1; i <= n; i++) {
      ans1[i] = 0;
    }
    return;
  }
  cout << "? ";
  for (int i = 1; i <= n; i++) {
    cout << ask[i] << ' ';
  }
  cout << endl;
  cin >> s;
  for (int i = 1; i <= n; i++) {
    ans1[i] = (s[i - 1] - '0');
  }
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, i, j, k, l, z;
  cin >> n;
  depth[0].push_back(1);
  vector<int> haha;
  for (i = 2; i <= n; i++) {
    haha.push_back(i);
  }
  temp.push_back({{1, n - 1}, haha});
  while (temp.size()) {
    vector<pair<pair<int, int>, vector<int> > > oh[2];
    for (z = 0; z < 2; z++) {
      if (temp.size() <= z) {
        continue;
      }
      reset(n);
      for (i = z; i < temp.size(); i += 2) {
        j = temp[i].first.first;
        k = temp[i].first.second;
        if (j == k) {
          for (auto x : temp[i].second) {
            depth[j].push_back(x);
          }
          continue;
        }
        for (l = 0; l < depth[j - 1].size(); l++) {
          ask[depth[j - 1][l]] = (j + k) / 2 - (j - 1) - 1;
        }
      }
      query(n);
      reset(n);
      for (i = z; i < temp.size(); i += 2) {
        j = temp[i].first.first;
        k = temp[i].first.second;
        if (j == k) {
          continue;
        }
        for (l = 0; l < depth[j - 1].size(); l++) {
          ask[depth[j - 1][l]] = (j + k) / 2 - (j - 1);
        }
      }
      query1(n);
      for (i = z; i < temp.size(); i += 2) {
        j = temp[i].first.first;
        k = temp[i].first.second;
        if (j == k) {
          continue;
        }
        vector<int> hix, hix1;
        for (auto x : temp[i].second) {
          if (ans[x]) {
            hix.push_back(x);
          }
          if (ans1[x] && !ans[x]) {
            depth[(j + k) / 2].push_back(x);
          }
          if (!ans1[x]) {
            hix1.push_back(x);
          }
        }
        if (hix.size()) {
          oh[z].push_back({{j, (j + k) / 2 - 1}, hix});
        }
        if (hix1.size()) {
          oh[z].push_back({{(j + k) / 2 + 1, k}, hix1});
        }
      }
    }
    temp.clear();
    j = k = 0;
    while (j < oh[0].size() && k < oh[1].size()) {
      if (oh[0][j].first.first < oh[1][k].first.first) {
        temp.push_back(oh[0][j]);
        j++;
      } else {
        temp.push_back(oh[1][k]);
        k++;
      }
    }
    while (j < oh[0].size()) {
      temp.push_back(oh[0][j]);
      j++;
    }
    while (k < oh[1].size()) {
      temp.push_back(oh[1][k]);
      k++;
    }
  }
  temp.clear();
  for (z = 0; z < 3; z++) {
    for (i = z; i < n - 1; i += 3) {
      if (!depth[i + 1].size()) {
        break;
      }
      lis.push_back({depth[i], depth[i + 1]});
    }
    while (lis.size()) {
      vector<pair<vector<int>, vector<int> > > temp;
      reset(n);
      for (i = 0; i < lis.size(); i++) {
        if (lis[i].first.size() == 1) {
          for (auto x : lis[i].second) {
            edge.push_back({x, lis[i].first.front()});
          }
          continue;
        }
        for (j = 0; j < lis[i].first.size() / 2; j++) {
          ask[lis[i].first[j]] = 1;
        }
      }
      query(n);
      for (i = 0; i < lis.size(); i++) {
        if (lis[i].first.size() == 1) {
          continue;
        }
        vector<int> hix, hix1, huhu, huhu1;
        for (j = 0; j < lis[i].first.size(); j++) {
          if (j < lis[i].first.size() / 2) {
            hix.push_back(lis[i].first[j]);
          } else {
            hix1.push_back(lis[i].first[j]);
          }
        }
        for (j = 0; j < lis[i].second.size(); j++) {
          if (ans[lis[i].second[j]]) {
            huhu.push_back(lis[i].second[j]);
          } else {
            huhu1.push_back(lis[i].second[j]);
          }
        }
        if (huhu.size()) {
          temp.push_back({hix, huhu});
        }
        if (huhu1.size()) {
          temp.push_back({hix1, huhu1});
        }
      }
      swap(temp, lis);
    }
  }
  cout << "!\n";
  for (i = 0; i < edge.size(); i++) {
    cout << edge[i].first << ' ' << edge[i].second << '\n';
  }
  return 0;
}