Problem: Note that the only difference between the easy and hard version is the constraint on the number of queries. You can make hacks only if all versions of the problem are solved.

This is an interactive problem.

You are given a tree consisting of n nodes numbered with integers from 1 to n. Ayush and Ashish chose two secret distinct nodes in the tree. You need to find out both the nodes. You can make the following query: 

  * Provide a list of nodes and you will receive a node from that list whose sum of distances to both the hidden nodes is minimal (if there are multiple such nodes in the list, you will receive any one of them). You will also get the sum of distances of that node to the hidden nodes. 



Recall that a tree is a connected graph without cycles. The distance between two nodes is defined as the number of edges in the simple path between them.

More formally, let's define two hidden nodes as s and f. In one query you can provide the set of nodes \\{a_1, a_2, …, a_c\} of the tree. As a result, you will get two numbers a_i and dist(a_i, s) + dist(a_i, f). The node a_i is any node from the provided set, for which the number dist(a_i, s) + dist(a_i, f) is minimal.

You can ask no more than 14 queries.

Input

The first line contains a single integer t (1 ≤ t ≤ 10) — the number of test cases. Please note, how the interaction process is organized.

The first line of each test case consists of a single integer n (2 ≤ n ≤ 1000) — the number of nodes in the tree.

The next n - 1 lines consist of two integers u, v (1 ≤ u, v ≤ n, u ≠ v) — the edges of the tree.

Interaction

To ask a query print a single line: 

  * In the beginning print "? c " (without quotes) where c (1 ≤ c ≤ n) denotes the number of nodes being queried, followed by c distinct integers in the range [1, n] — the indices of nodes from the list. 



For each query, you will receive two integers x, d — the node (among the queried nodes) with the minimum sum of distances to the hidden nodes and the sum of distances from that node to the hidden nodes. If the subset of nodes queried is invalid or you exceeded the number of queries then you will get x = d = -1. In this case, you should terminate the program immediately.

When you have guessed the hidden nodes, print a single line "! " (without quotes), followed by two integers in the range [1, n] — the hidden nodes. You can output the hidden nodes in any order.

After this, you should read a string. If you guess the nodes correctly, you will receive the string "Correct". In this case, you should continue solving the remaining test cases or terminate the program, if all test cases were solved. Otherwise, you will receive the string "Incorrect". In this case, you should terminate the program immediately.

Guessing the hidden nodes does not count towards the number of queries asked.

The interactor is not adaptive. The hidden nodes do not change with queries.

Do not forget to read the string "Correct" / "Incorrect" after guessing the hidden nodes.

You need to solve each test case before receiving the input for the next test case.

The limit of 14 queries applies to each test case and not to the entire input.

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



Hacks

To hack the solution, use the following test format:

The first line should contain a single integer t (1 ≤ t ≤ 10) — the number of test cases. The description of the test cases follows.

The first line of each test case should contain a single integer n (2 ≤ n ≤ 1000) — the number of nodes in the tree. The second line should contain two distinct integers in the range [1, n] — the hidden nodes. The next n - 1 lines should contain two integers u, v (1 ≤ u, v ≤ n, u ≠ v) — the edges of the tree.

Example

Input


1
3
1 2
1 3

1 1

2 3

3 1

3 1

Correct

Output


? 1 1

? 1 2

? 1 3

? 2 2 3

! 1 3

Note

The tree from the first test is shown below, and the hidden nodes are 1 and 3.

<image>

Solution (in JAVA):

Solution:
import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;

public class D {
	public static void main(String[] args) throws Exception {
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb;
        int t = Integer.parseInt(bf.readLine());
        for (int i = 0; i < t; i++) {
            StringTokenizer st = new StringTokenizer(bf.readLine());
            int n = Integer.parseInt(st.nextToken());
            int k = Integer.parseInt(st.nextToken());

            //ArrayList<ArrayList<Integer>> subsets = new ArrayList<ArrayList<Integer>>();
            ArrayList<Node> subsets = new ArrayList<Node>();
            for (int j = 0; j < k; j++) {
                st = new StringTokenizer(bf.readLine());
                Node cur = new Node(j);
                subsets.add(cur);
                int c = Integer.parseInt(st.nextToken());
                for (int l = 0; l < c; l++) {
                    cur.subset.add(Integer.parseInt(st.nextToken()));
                }
            }
            // now build complete tree
            ArrayList<Node> curLevel = subsets;
            while (curLevel.size() > 2) {
                ArrayList<Node> newLevel = new ArrayList<Node>();
                for (int j = 0; j < curLevel.size(); j += 2) {
                    Node left = curLevel.get(j);
                    if (j + 1 < curLevel.size()) {
                        Node right = curLevel.get(j + 1);
                        Node merged = new Node(-1);
                        merged.left = left;
                        merged.right = right;
                        for (Integer val : left.subset) {
                            merged.subset.add(val);
                        }
                        for (Integer val : right.subset) {
                            merged.subset.add(val);
                        }
                        newLevel.add(merged);
                    } else {
                        newLevel.add(left);
                    }
                }
                curLevel = newLevel;
            }
            // cur level size is now 2
            // can begin queries
            int[] password = new int[k];
            int numRevealed = 0;

            Node left = curLevel.get(0);
            Node right = (curLevel.size() > 1 ? curLevel.get(1) : null);

            int fromAbove = 0;

            int maxUnused = -1;

            sb = new StringBuilder();
            sb.append("? ");
            /*sb.append(left.subset.size() + right.subset.size());
            for (int j : left.subset) {
                sb.append(" ");
                sb.append(j);
            }
            for (int j : right.subset) {
                sb.append(" ");
                sb.append(j);
            }*/
            sb.append(n);
            for (int j = 0; j < n; j++) {
                sb.append(" ");
                sb.append(j + 1);
            }
            System.out.println(sb.toString());
            System.out.flush();

            fromAbove = Integer.parseInt(bf.readLine());

            Node newLeft;
            Node newRight;
            Node last = left;
            if (right != null) {
                while (left != null) {
                    while (right == null) {
                        newLeft = left.left;
                        newRight = left.right;
                        left = newLeft;
                        right = newRight;
                    }
                    // query left
                    sb = new StringBuilder();
                    sb.append("? ");
                    sb.append(left.subset.size());
                    for (int subn : left.subset) {
                        sb.append(" ");
                        sb.append(subn);
                    }
                    System.out.println(sb.toString());
                    System.out.flush();

                    int result = Integer.parseInt(bf.readLine());

                    if (result < fromAbove) {
                        if (result > maxUnused) maxUnused = result;
                        // everything on left gets set to from above
                        numRevealed += propagate(left, password, fromAbove);
                        // don't change from above
                        last = right;
                        newLeft = last.left;
                        newRight = last.right;
                    } else {
                        // everything on right gets set to from above
                        numRevealed += propagate(right, password, fromAbove);
                        // also don't change from above??
                        last = left;
                        newLeft = last.left;
                        newRight = last.right;
                    }
                    left = newLeft;
                    right = newRight;
                }
            }
            // now just need to uncover value of last
            //if (maxUnused == -1) { // spend extra query to find it out?
            if (true) {
                boolean[] seen = new boolean[n];
                for (int j : last.subset) {
                    seen[j-1] = true;
                }
                ArrayList<Integer> finalQ = new ArrayList<Integer>();
                for (int j = 0; j < n; j++) {
                    if (!seen[j]) {
                        finalQ.add(j+1);
                    }
                }
                /*for (Node node : subsets) {
                    if (node.v != last.v) {
                        for (Integer aya : node.subset) {
                            finalQ.add(aya);
                        }
                    }
                }*/
                sb = new StringBuilder();
                sb.append("? ");
                sb.append(finalQ.size());
                for (int subn : finalQ) {
                    sb.append(" ");
                    sb.append(subn);
                }
                System.out.println(sb.toString());
                System.out.flush();
                maxUnused = Integer.parseInt(bf.readLine());
            }
            password[last.v] = maxUnused;

            sb = new StringBuilder();
            sb.append("!");
            for (int j = 0; j < k; j++) {
                sb.append(" ");
                sb.append(password[j]);
            }
            System.out.println(sb.toString());
            System.out.flush();
            bf.readLine();
        }
        System.exit(0);
	}

    public static int propagate(Node cur, int[] password, int value) {
        if (cur.v != -1) {
            password[cur.v] = value;
            return 1;
        }
        int r = 0;
        if (cur.left != null) {
            r += propagate(cur.left,  password, value);
        }
        if (cur.right != null) {
            r += propagate(cur.right, password, value);
        }
        return r;
    }
}

class Node {
    public int v;
    public ArrayList<Integer> subset;
    public Node left;
    public Node right;

    public Node(int v) {
        this.v = v;
        this.subset = new ArrayList<Integer>();
        this.left = null;
        this.right = null;
    }
}