Problem: This is an interactive problem.
There is a secret sequence , which is a permutation of .
You need to find any two indices and such that is maximized, where denotes the bitwise XOR operation.
To do this, you can ask queries. Each query has the following form: you pick arbitrary indices , , , and (). Next, the jury calculates and , where denotes the bitwise OR operation. Finally, you receive the result of comparison between and . In other words, you are told if , , or .
Please find any two indices and () such that is maximum among all such pairs, using at most queries. If there are multiple pairs of indices satisfying the condition, you may output any one of them.
Input Format: Each test contains multiple test cases. The first line contains the number of test cases (). The description of the test cases follows.
Note: In the first test case, the hidden permutation is .
For the query "? 0 2 3 1", the jury return "<" because .
For the query "? 1 1 2 3", the jury return "=" because .
For the query "? 1 2 0 3", the jury return ">" because .
The answer and is valid: is indeed equal to the maximum possible value of . Another valid answer would be and . As the number of queries does not exceed , the answer is considered correct.
In the second test case, , so is either or . In any case, is maximum possible.