P17314 [KismetOI 2026 I] oo_vv_oo
Description
There is a sequence $A$ of length $n$.
Each time you can give the interactor a sequence of indices $i_1,i_2,i_3,\dots,i_k$. It is required that $1 \le i_x \le n$, but they may be repeated.
The interactor returns $j_1,j_2,\dots,j_K$, where $j_x$ means that $A_{i_{j_x}} > \max(A_{i_{j_{x}-1}},A_{i_{j_{x}+1}})$; obviously $1 < j_x < k$.
Now $n$ is known, and $A$ contains a unique maximum. Moreover, it is guaranteed that $A_1=A_n=0$. Answer the index of the maximum within $m$ queries.
**Note**: the value of $k$ in a query cannot exceed $n$, otherwise an unknown error may occur.
Input Format
First, input a line with two integers $n,m$.
For each of your queries, the interactor outputs a line in the following format: first it outputs an integer $K$, then it outputs $K$ integers representing the returned sequence $j$, separated by spaces.
Output Format
You can interact in the following format:
* Output a line `? k i[1] i[2] ... i[k]` to perform the query described in the statement.
* Output a line `! ans` to indicate that you have determined the index $ans$ of the maximum. After that, please terminate your program to avoid unpredictable results.
**After performing each query or printing the answer, output a newline and flush the buffer.**
You can use the following statements to flush the buffer:
- For C/C++: `fflush(stdout)`;
- For C++: `std::cout
Explanation/Hint
## Sample Explanation
Note that the sample only illustrates the interaction format and does not guarantee the soundness of the output strategy.
The hidden sequence $A$ is $0,1,3,1,2,0$.
For the first query, we have $A_2A_4$ and $A_4A_6$, so the interactor returns $3,5$.
For the second query, we have $A_2A_4$, so the interactor returns $2$. **Note that what is returned is the sequence $j$, not the sequence $i_j$.**
The program finds the answer and outputs $3$; $A_3=3$ is indeed the maximum of the sequence, so the answer is correct.
## Constraints
For all data, $3 \le n \le 10^6$, $1 \le m \le 10^6$, $0 \le A_i \le 10^9$.
::cute-table{tuack}
| Subtask No. | $n$ | Special property | Score |
| :--------: | :--------: | :------: | :--: |
| #1 | $=3$ | None | $5$ |
| #2 | $\le 50$ | $m=10^4$ | $25$ |
| #3 | $\le 100$ | $m=2n$ | $25$ |
| #4 | $\le 10^6$ | $m=20$ | $45$ |
Translated by QwenWork