Problem: This is an interactive problem.
Ayush devised a new scheme to set the password of his lock. The lock has slots where each slot can hold integers from to . The password is a sequence of integers each in the range , -th element of which goes into the -th slot of the lock.
To set the password of his lock, Ayush comes up with an array of integers each in the range (not necessarily distinct). He then picks non-empty mutually disjoint subsets of indices and sets his password as . In other words, the -th integer in the password is equal to the maximum over all elements of whose indices do not belong to .
You are given the subsets of indices chosen by Ayush. You need to guess the password. To make a query, you can choose a non-empty subset of indices of the array and ask the maximum of all elements of the array with index in this subset. You can ask no more than 12 queries.
Input Format: The first line of the input contains a single integer — the number of test cases. The description of the test cases follows.
The first line of each test case contains two integers and — the size of the array and the number of subsets. lines follow. The -th line contains an integer — the size of subset , followed by distinct integers in the range — indices from the subset .
It is guaranteed that the intersection of any two subsets is empty.
Note: The array in the example is . The length of the password is . The first element of the password is the maximum of , (since the first subset contains indices and , we take maximum over remaining indices). The second element of the password is the maximum of , (since the second subset contains indices , ).
Do not forget to read the string "Correct" / "Incorrect" after guessing the password.