There are $n$ chairs arranged in a circle. Each chair is either red or blue. The chairs are numbered $1, 2,\dots, n$ ; chairs $i$ and $i+1$ are next to each other for all $1 \le i \le n$ . Here chair $n+1$ refers to chair $1$ .
Your task is to find two chairs that have the same color and are next to each other.
To do this, you can ask questions: you can choose a chair and you will be told the color of that chair.
This is an interactive problem. Your code will interact with the grader using standard input and output. You should start by reading a single integer $n$ : the number of chairs.
On your turn, you can print one of the following:
Each line should be followed by a line break. You must make sure the output gets flushed after printing each line.
5 ? 1 R ? 2 B ? 3 B ! 2\n · \n \n · \n \n · \n \n · \n