Hidden Rook

아직 제출이 없습니다시간 제한15초메모리 제한256 MB

문제

This problem is interactive.

Roman hid a rook on an n×mn \times m chessboard. You need to find its exact position. You can ask Roman the following question at most 4 times: "How many cells (i,j)(i, j), where X_1iX_2X\_1 \le i \le X\_2 and Y_1jY_2Y\_1 \le j \le Y\_2, are under the hidden rook's attack?" A rook attacks all cells in the same row or column, including its own cell.

입력

The first line contains an integer tt, the number of test cases (1t15,0001 \le t \le 15\\,000).