- Time limit: 1.00 s
- Memory limit: 512 MB
There is a hidden permutation of integers . Your task is to find this permutation.
To do this, you can ask questions: you can choose a binary string and you will receive the binary string .
Interaction
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 : the length of the permutation.
On your turn, you can print one of the following:
- "", where : The grader will return the binary string .
- "": report that the hidden permutation is . Your program must terminate after this.
Each line should be followed by a line break. You must make sure the output gets flushed after printing each line.
Constraints
- you can ask at most questions of type
Example
3 ? 100 100 ? 010 001 ? 001 010 ! 1 3 2
Explanation: The hidden permutation is . In the first question and the grader returns . In the second question and the grader returns .