D. Polygon Game
time limit per test
2 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Example
Input
5

1

3

1

0

1
Output

? 5 4

? 1 3

? 2 1

? 2 4

! 4 1 3 5 2