This is an interactive problem.
There are points on a number line with integer coordinates x_1, x_2, \ldots, x_n. It is guaranteed that 1\le x_i\le n for 1\le i\le n.
A point x_k is considered to be between points x_i and x_j if and only if it belongs to the segment constructed on points x_i and x_j. Formally, point x_k is between points x_i and x_j if and only if x_i \leq x_k \leq x_j or x_j \leq x_k \leq x_i.
You need to find any two indices and such that all points are between points x_i and x_j.
You can use the following query: select three indices (, , ) and find out if point x_k is between points x_i and x_j.
You are allowed to use no more than queries.
It is guaranteed that the coordinates of the points are fixed before the interaction begins. In other words, the interactor is not adaptive.
The first line contains a single integer (3 \le n \le 2 \cdot 10^4) — the number of points.
To make a query, output "? " (1 \le i, j, k \le n), then output a newline character and perform the flush operation.
In response to the query, the jury program will output a single integer (f \in \{0,1\}). If f = 1, then point x_k is between points x_i and x_j; if f = 0, then point x_k is not between them.
If the query is invalid (i.e., the maximum number of queries is exceeded or the query parameters are invalid), the jury program will output -1 and terminate. In this case, terminate the program to receive the verdict Wrong Answer.
When you are ready to provide an answer, output it in the format "! " (1 \leq i, j \leq n), where and are the sought indices of points. After that, terminate the program.
The flush operation is performed as follows:
fflush(stdout) or cout.flush() in C++;
System.out.flush() in Java;
flush(output) in Pascal;
sys.stdout.flush() in Python.
Example
4
1
1
? 1 4 2
? 1 4 3
! 1 4In the example, the points have coordinates x = [1, 2, 3, 4].
( points): n \le 20;
( points): n \le 100;
( points): n \le 10000;
( points): n \le 20000, x_i \le 2;
( points): n \le 12000;
( points): without additional constraints.