Problem: This is an interactive problem. In the interaction section below you will find the information about flushing the output.

The New Year tree of height h is a perfect binary tree with vertices numbered 1 through 2h - 1 in some order. In this problem we assume that h is at least 2. The drawing below shows one example New Year tree of height 3:

<image>

Polar bears love decorating the New Year tree and Limak is no exception. To decorate the tree, he must first find its root, i.e. a vertex with exactly two neighbours (assuming that h ≥ 2). It won't be easy because Limak is a little bear and he doesn't even see the whole tree. Can you help him?

There are t testcases. In each testcase, you should first read h from the input. Then you can ask at most 16 questions of format "? x" (without quotes), where x is an integer between 1 and 2h - 1, inclusive. As a reply you will get the list of neighbours of vertex x (more details in the "Interaction" section below). For example, for a tree on the drawing above after asking "? 1" you would get a response with 3 neighbours: 4, 5 and 7. Your goal is to find the index of the root y and print it in the format "! y". You will be able to read h for a next testcase only after printing the answer in a previous testcase and flushing the output.

Each tree is fixed from the beginning and it doesn't change during your questions.

Input

The first line of the input contains a single integer t (1 ≤ t ≤ 500) — the number of testcases.

At the beginning of each testcase you should read from the input a single integer h (2 ≤ h ≤ 7) — the height of the tree. You can't read the value of h in a next testcase until you answer a previous testcase.

Interaction

To ask a question about neighbours of vertex x, print "? x" (without quotes) on a separate line. Note, you must print an end-of-line character after the last character of the line and flush your output to get a response.

The response will consist of two lines. The first line will contain a single integer k (1 ≤ k ≤ 3) — the number of neighbours of vertex x. The second line will contain k distinct integers t1, ..., tk (1 ≤ t1 < ... < tk ≤ 2h - 1) — indices of neighbours of vertex x, gives in the increasing order.

After asking at most 16 questions you have to say y — the index of the root. Print "! y" (without quotes) and an end-of-line character, and flush the output.

Each tree is fixed from the beginning and it doesn't change during your questions.

You can get Idleness Limit Exceeded if you don't print anything or if you forget to flush the output.

To flush you can use (just printing a query/answer and end-of-line): 

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



In any moment if the program reads h = 0 or k = 0 it should immediately terminate normally (for example, calling exit(0)). It means that the system detected incorrect request/output from your program and printed 0 because if can't process your requests anymore. In this case you'll receive verdict "Wrong Answer", but if you ignore case h = 0 or k = 0 it could lead to "Runtime Error", "Time/Memory limit exceeded" or any other verdict because your program could read a trash from the closed input stream.

Hacking. To hack someone, use the following format:

The first line should contain a single integer t equal to 1 (only one testcase is allowed in hacks). The second line should contain a single integer h. Each of next 2h - 2 lines should contain two distinct integers ai and bi (1 ≤ ai, bi ≤ 2h - 1), denoting two nodes connected with an edge. The printed edges must form a perfect binary tree of height h.

Of course, contestant programs will not be able to see this input.

Examples

Input

1
3
3
4 5 7
2
1 2
1
2


Output

? 1
? 5
? 6
! 5


Input

2
2
1
3
2
1 2
2
1 2
4
3
3 12 13


Output

? 1
? 3
? 3
! 3
? 6
! 1

Note

In the first sample, a tree corresponds to the drawing from the statement.

In the second sample, there are two two testcases. A tree in the first testcase has height 2 and thus 3 vertices. A tree in the second testcase has height 4 and thus 15 vertices. You can see both trees on the drawing below.

<image>

Solution (in JAVA):

Solution:
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.PrintStream;
import java.util.Arrays;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Jialin Ouyang (Jialin.Ouyang@gmail.com)
 */
public class Main {
  public static void main(String[] args) {
    InputStream inputStream = System.in;
    OutputStream outputStream = System.out;
    QuickScanner in = new QuickScanner(inputStream);
    QuickWriter out = new QuickWriter(outputStream);
    TaskF solver = new TaskF();
    solver.solve(1, in, out);
    out.close();
  }

  static class TaskF {
    static int MAXH = 7;
    static int MAXN = 1 << MAXH;
    Server server;
    int n;
    int h;
    int[] height;
    boolean[] asked;
    IntArrayList[] nodes;
    IntArrayList lst;

    public void solve(int testNumber, QuickScanner in, QuickWriter out) {
      server = new Server(in, out);
//    server = new FakeServer();
      nodes = new IntArrayList[MAXN];
      lst = new IntArrayList(MAXN);
      height = new int[MAXN];
      asked = new boolean[MAXN];
      for (int i = 0; i < MAXN; ++i) nodes[i] = new IntArrayList(3);
      for (int remTask = server.getTask(); remTask > 0; --remTask) {
        server.init();
        h = server.getHeight();
        if (h == 0) break;
        server.answer(calc());
      }
    }

    int calc() {
      n = (1 << h) - 1;
      for (int i = 0; i < n; ++i) nodes[i].clear();
      Arrays.fill(asked, false);
      int subRoot = findSubRoot();
      if (height[subRoot] == 0) return subRoot;
      return calc(notAskedNode(subRoot), subRoot, height[subRoot] - 1);
    }

    int calc(int subRoot, int prev, int height) {
      if (height == 0) {
        return subRoot;
      }
      ask(subRoot);
      if (height == 1) {
        return calcRoot(nodes[subRoot]);
      }
      if (height == 2) {
        lst.clear();
        for (int i = 0; i < nodes[subRoot].size; ++i) {
          int u = nodes[subRoot].get(i);
          ask(u);
          for (int j = 0; j < nodes[u].size; ++j) {
            int v = nodes[u].get(j);
            if (v != subRoot) lst.add(v);
          }
        }
        return calcRoot(lst);
      }
      boolean first = true;
      for (int i = 0; i < nodes[subRoot].size; ++i) {
        int u = nodes[subRoot].get(i);
        if (u == prev) continue;
        if (first) {
          first = false;
          if (!findLeaf(u, subRoot, h - 1 - height)) {
            return calc(u, subRoot, height - 1);
          }
        } else {
          return calc(u, subRoot, height - 1);
        }
      }
      throw new IllegalArgumentException();
    }

    boolean findLeaf(int u, int prev, int rem) {
//System.out.printf("findLeaf(u:%d prev:%d rem:%d)\n", u, prev, rem);
      --rem;
      ask(u);
      for (; rem > 0; --rem) {
        for (int i = 0; i < nodes[u].size; ++i) {
          int v = nodes[u].get(i);
          if (v != prev) {
            prev = u;
            u = v;
            break;
          }
        }
        ask(u);
      }
//System.out.printf("found(%s)\n", nodes[u].size == 1 ? "true" : "false");
      return nodes[u].size == 1;
    }

    int calcRoot(IntArrayList rootLst) {
      rootLst.sortAndUnique();
      int unAskedCnt = 0;
      for (int i = 0; i < rootLst.size; ++i) {
        int u = rootLst.get(i);
        if (asked[u]) {
          if (nodes[u].size == 2) return u;
        } else {
          ++unAskedCnt;
        }
      }
      for (int i = 0; i < rootLst.size; ++i) {
        int u = rootLst.get(i);
        if (asked[u]) continue;
        if (unAskedCnt > 1) {
          --unAskedCnt;
          if (ask(u) == 2) return u;
        } else {
          return u;
        }
      }
      throw new IllegalArgumentException();
    }

    int findSubRoot() {
      ask(0);
      if (nodes[0].size == 1) {
        height[0] = h - 1;
        return 0;
      }
      if (nodes[0].size == 2) {
        height[0] = 0;
        return 0;
      }
      lst.clear();
      walkToEnd(nodes[0].get(0), 0, lst);
      lst.reverse();
      lst.add(0);
      walkToEnd(nodes[0].get(1), 0, lst);
      if ((lst.size & 1) == 0) {
        System.out.printf("lst:%s\n", lst.toString());
        throw new IllegalArgumentException();
      }
      int res = lst.get(lst.size >> 1);
      height[res] = h - 1 - (lst.size >> 1);
      return res;
    }

    void walkToEnd(int u, int lastU, IntArrayList lst) {
      while (true) {
        lst.add(u);
        ask(u);
        if (nodes[u].size == 1) break;
        for (int i = 0; i < nodes[u].size; ++i)
          if (nodes[u].get(i) != lastU) {
            lastU = u;
            u = nodes[u].get(i);
            break;
          }
      }
    }

    int notAskedNode(int u) {
      for (int i = 0; i < nodes[u].size; ++i) {
        int v = nodes[u].get(i);
        if (!asked[v]) return v;
      }
      throw new IllegalArgumentException();
    }

    int ask(int u) {
      if (asked[u]) return nodes[u].size;
      asked[u] = true;
      server.ask(u);
      return nodes[u].size;
    }

    class Server {
      final QuickScanner in;
      final QuickWriter out;

      Server(QuickScanner in, QuickWriter out) {
        this.in = in;
        this.out = out;
      }

      void init() {
      }

      int getTask() {
        return in.nextInt();
      }

      int getHeight() {
        return in.nextInt();
      }

      void ask(int u) {
        out.println("? " + (u + 1));
        out.flush();
        int n = in.nextInt();
        if (n == 0) System.exit(0);
        for (int i = 0; i < n; ++i) {
          nodes[u].add(in.nextInt() - 1);
        }
      }

      void answer(int u) {
        out.println("! " + (u + 1));
        out.flush();
      }

    }

  }

  static class QuickWriter {
    private final PrintWriter writer;

    public QuickWriter(OutputStream outputStream) {
      this.writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
    }

    public QuickWriter(Writer writer) {
      this.writer = new PrintWriter(writer);
    }

    public void print(Object... objects) {
      for (int i = 0; i < objects.length; ++i) {
        if (i > 0) {
          writer.print(' ');
        }
        writer.print(objects[i]);
      }
    }

    public void println(Object... objects) {
      print(objects);
      writer.print('\n');
    }

    public void close() {
      writer.close();
    }

    public void flush() {
      writer.flush();
    }

  }

  static interface IntCollection {
  }

  static class QuickScanner {
    private static final int BUFFER_SIZE = 1024;
    private InputStream stream;
    private byte[] buffer;
    private int currentPosition;
    private int numberOfChars;

    public QuickScanner(InputStream stream) {
      this.stream = stream;
      this.buffer = new byte[BUFFER_SIZE];
      this.currentPosition = 0;
      this.numberOfChars = 0;
    }

    public int nextInt() {
      int c = nextNonSpaceChar();
      boolean positive = true;
      if (c == '-') {
        positive = false;
        c = nextChar();
      }
      int res = 0;
      do {
        if (c < '0' || '9' < c) throw new RuntimeException();
        res = res * 10 + c - '0';
        c = nextChar();
      } while (!isSpaceChar(c));
      return positive ? res : -res;
    }

    public int nextNonSpaceChar() {
      int res = nextChar();
      for (; isSpaceChar(res) || res < 0; res = nextChar()) ;
      return res;
    }

    public int nextChar() {
      if (numberOfChars == -1) {
        throw new RuntimeException();
      }
      if (currentPosition >= numberOfChars) {
        currentPosition = 0;
        try {
          numberOfChars = stream.read(buffer);
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
        if (numberOfChars <= 0) {
          return -1;
        }
      }
      return buffer[currentPosition++];
    }

    public boolean isSpaceChar(int c) {
      return c == ' ' || c == '\t' || isEndOfLineChar(c);
    }

    public boolean isEndOfLineChar(int c) {
      return c == '\n' || c == '\r' || c < 0;
    }

  }

  static class IntArrayUtils {
    public static void reverse(int[] values, int fromIdx, int toIdx) {
      for (int i = fromIdx, j = toIdx - 1; i < j; ++i, --j) {
        values[i] ^= values[j];
        values[j] ^= values[i];
        values[i] ^= values[j];
      }
    }

    public static int unique(int[] values, int fromIdx, int toIdx) {
      if (fromIdx == toIdx) return 0;
      int res = 1;
      for (int i = fromIdx + 1; i < toIdx; ++i) {
        if (values[i - 1] != values[i]) {
          values[fromIdx + res++] = values[i];
        }
      }
      return res;
    }

    public static String toString(int[] values, int fromIdx, int toIdx) {
      StringBuilder sb = new StringBuilder("[");
      for (int i = fromIdx; i < toIdx; ++i) {
        if (i != fromIdx) sb.append(", ");
        sb.append(values[i]);
      }
      return sb.append("]").toString();
    }

  }

  static class IntArrayList implements IntCollection {
    private static final int[] EMPTY = {};
    public int[] values;
    public int size;

    public IntArrayList() {
      values = EMPTY;
      clear();
    }

    public IntArrayList(int capacity) {
      values = new int[Integer.highestOneBit(capacity) << 1];
      clear();
    }


    public void clear() {
      size = 0;
    }


    public void add(int value) {
      ensureCapacity(size + 1);
      values[size++] = value;
    }

    public int get(int idx) {
      if (idx >= size) throw new ArrayIndexOutOfBoundsException();
      return values[idx];
    }

    public void sort() {
      Arrays.sort(values, 0, size);
    }

    public void unique() {
      size = IntArrayUtils.unique(values, 0, size);
    }

    public void sortAndUnique() {
      sort();
      unique();
    }

    public void reverse() {
      IntArrayUtils.reverse(values, 0, size);
    }


    public String toString() {
      return IntArrayUtils.toString(values, 0, size);
    }

    protected void ensureCapacity(int capacity) {
      if (capacity <= values.length) return;
      int[] newValues = new int[Integer.highestOneBit(capacity) << 1];
      for (int i = 0; i < values.length; ++i) {
        newValues[i] = values[i];
      }
      values = newValues;
    }

  }
}