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;
int d[4][1010], dep[1010], l[1010], r[1010], cnt, tl[1010], tr[1010], n;
int father[1010];
char s[4][1010];
vector<int> node[1010], tnode[1010];
void solve1(int c, int cnt) {
  for (int i = 1; i <= n; i++) d[0][i] = d[1][i] = 0;
  for (int i = c; i <= cnt; i += 2) {
    int mid = (l[i] + r[i]) / 2;
    for (int j = 1; j <= n; j++)
      if (dep[j] == l[i] - 1) {
        d[0][j] = mid - l[i] + 1;
        d[1][j] = d[0][j] - 1;
      }
  }
  if (c == 2) c = 0;
  for (int t = 0; t <= 1; t++) {
    printf("?");
    for (int i = 1; i <= n; i++) printf(" %d", d[t][i]);
    puts("");
    fflush(stdout);
    scanf("%s", s[2 * c + t] + 1);
  }
}
void get_res() {
  for (int i = 0; i <= 9; i++)
    for (int j = 0; j <= 3; j++) {
      printf("?");
      for (int k = 1; k <= n; k++)
        if (dep[k] % 3 == j && (k >> i) & 1)
          printf(" %d", 1);
        else
          printf(" %d", 0);
      puts("");
      fflush(stdout);
      scanf("%s", s[0] + 1);
      for (int k = 2; k <= n; k++)
        if ((dep[k] - 1) % 3 == j && s[0][k] == '1') father[k] += 1 << i;
    }
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) dep[i] = -1;
  dep[1] = 0;
  for (int i = 2; i <= n; i++) node[1].push_back(i);
  l[1] = 1;
  r[1] = n;
  cnt = 1;
  while (true) {
    solve1(2, cnt);
    solve1(1, cnt);
    int tot = 0;
    for (int i = 1; i <= cnt; i++) tnode[i].clear();
    for (int i = 1; i <= cnt; i++) {
      int c = (i % 2), len = node[i].size(), mid = (l[i] + r[i]) / 2, c0, c1;
      if (l[i] < mid - 1) {
        tl[tot + 1] = l[i];
        tr[tot + 1] = mid - 1;
        tot++;
        c0 = tot;
      }
      if (mid + 1 < r[i]) {
        tl[tot + 1] = mid + 1;
        tr[tot + 1] = r[i];
        tot++;
        c1 = tot;
      }
      for (int j = 0; j <= len - 1; j++) {
        int ch = -1, v = node[i][j];
        if (s[2 * c][v] == '0')
          ch = 1;
        else if (s[2 * c + 1][v] == '1')
          ch = 0;
        else
          dep[v] = mid;
        if (ch == 0) {
          if (l[i] == mid - 1)
            dep[v] = l[i];
          else
            tnode[c0].push_back(v);
        } else if (ch == 1) {
          if (mid + 1 == r[i])
            dep[v] = mid + 1;
          else
            tnode[c1].push_back(v);
        }
      }
    }
    cnt = tot;
    for (int i = 1; i <= tot; i++) {
      l[i] = tl[i];
      r[i] = tr[i];
      node[i] = tnode[i];
    }
    int flag = 1;
    for (int i = 1; i <= n; i++)
      if (dep[i] == -1) {
        flag = 0;
        break;
      }
    if (flag) break;
  }
  get_res();
  puts("!");
  for (int i = 2; i <= n; i++) printf("%d %d\n", father[i], i);
  return 0;
}