Toky and Efa are playing an interesting game. A brief description of the game is given below.
Suppose , and are the height, width and area of a rectangle respectively. So . Efa has kept the area secret and Toky has to find it by guessing height and width. Don't worry, Efa also gives the maximum possible value of and . That means, Efa gives Toky an integer and he has to guess two integers and between and such that . But Toky doesn’t have much time to finish the game because he wants to participate in Code To Save A Mother and Toky also doesn’t want to make Efa sad. So, he wants you to play with her as you are the only one here without them.
Now, here is the interesting part. You don’t have to find the area by one chance. In reply of your guessing, Efa will tell your guessed area is equal or less or greater than the hidden area. But she doesn’t like to talk much. So, she will reply your guess not more than times. Can you find out the area?
The first line of the input is an integer, denoting the number of test cases means how many times Efa wants to play.
Each test case has an integer, denoting the maximum possible value of .
You have to start guessing after receiving . To inform your guess, you have to print in the following way (without quotes).
After printing, you will have to read one character based on the following incidents.
If , you will receive a character “” (without quotes)
If , you will receive a character ““ (without quotes)
If , you will receive a character “” (without quotes). After receiving this, you have to print "" (without quotes) and exit from current test case immediately.
If you try to guess more than times or after receiving “” or print invalid characters (any character without and ), invalid numbers (non-positive or or ), you will receive a character “” (without quotes) and you must terminate your program after receiving this. If you terminate, you will receive Wrong Answer otherwise you will get any arbitrary non-accepted verdict.
This is an interactive problem. So, You have to flush output after printing each line. In C++, you should use endl or fflush(stdout) after printing each line. For other languages, see the language documentation.
Let, and , here is a sample interaction for .
? 1 2
? 5 6
? 4 4