D. Cross Queries
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Paulo has decided to study physics, however, he still does not understand the concept of cross product of two vectors.

The cross product of two vectors in a two-dimensional space, $$$\vec{v}$$$ and $$$\vec{w}$$$, is defined by $$$\vec{v} \times \vec{w} = v_x w_y - v_y w_x$$$

His friend Duarte has decided to help him, and as such, he proposes a game: He picks $$$n$$$ distinct points $$$P_1,P_2,\dots,P_n$$$ in the plane, such that there are not two integers $$$1 \leq a \lt b \leq n$$$ such that the points $$$P_a$$$, $$$O$$$ and $$$P_b$$$ are collinear. In particular, this means that the origin is never picked, and no point appears more than one time. Additionally, all points have integer coordinates and they do not exceed $$$2\times 10^4$$$ in absolute value. Paulo can ask queries by saying two integers $$$a$$$ and $$$b$$$, and Duarte will respond with the cross product of vectors $$$\vec{OP_a}$$$ and $$$\vec{OP_b}$$$, where $$$O$$$ is the origin of the plane.

Paulo can ask at most $$$2n$$$ queries, and his objective is to determine the indexes of the points that are vertices in the convex hull of $$$P_1,P_2,\dots,P_n$$$ (points on the edge of the convex hull do not count). Help Paulo win the game!

Interaction

The interactor first prints an integer $$$t$$$ $$$(1 \leq t \leq 1000)$$$, the number of testcases.

Each testcase starts with the interactor printing an integer $$$n$$$, denoting the number of points hidden by Duarte $$$(3 \leq n \leq 1000)$$$. You can then start asking queries.

You start your query with a ?. Then, two integers $$$a$$$,$$$b$$$ follow $$$(a \neq b)$$$.

? k a b

When you know the convex hull, you must send a line starting with a ! followed by a space, the size $$$sz$$$ of the convex hull and integers $$$i_1$$$ $$$i_2$$$ $$$\dots$$$ $$$i_{sz}$$$ meaning that the points on the convex hull are $$$P_{i_1},P_{i_2},\dots,P_{i_{sz}}$$$. The order does not matter, but all $$$i_1,i_2,\dots,i_{sz}$$$ should be distinct.

! sz i1 i2 ... isz

It is guaranteed that the sum of all $$$n$$$ does not exceed $$$1000$$$.

Example
Input
1
3

2

-3

-1
Output


? 2 1

? 3 2

? 1 3

! 3 1 2 3