Jump

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

문제

Consider a toy interactive problem OneMaxOneMax which is defined as follows. You know an integer nn and there is a hidden bit string SS of length nn. The only thing you may do is to present the system a bit string QQ of length nn, and the system will return the number OneMax(Q)OneMax(Q) --- the number of bits which coincide in QQ and SS at the corresponding positions. The name of OneMaxOneMax problem stems from the fact that this problem is simpler to explain when S=11111S = 111\ldots11, so that the problem turns into maximization (MaxMax) of the number of ones (OneOne).

When nn is even, there is a similar (but harder) interactive problem called JumpJump. The simplest way to describe the JumpJump is by using OneMaxOneMax: \begin{equation\*} Jump(Q) = \begin{cases} OneMax(Q) & \text{if } OneMax(Q) = n \text{ or } OneMax(Q) = n/2;\\\ 0 & \text{otherwise}. \end{cases} \end{equation\*}

Basically, the only nonzero values of OneMaxOneMax which you can see with JumpJump are nn (which means you've found the hidden string SS) and n/2n/2.

Given an even integer nn --- the problem size, you have to solve the JumpJump problem for the hidden string SS by making interactive JumpJump queries. Your task is to eventually make a query QQ such that Q=SQ = S.

입력

The first line of the input stream contains an even number nn (2n10002 \le n \le 1000). The next lines of the input stream consist of the answers to the corresponding queries. Each answer is an integer --- either 00, n/2n/2, or nn. Each answer is on its own line.

출력

To make a query, print a line which contains a string of length nn which consists of characters 0 and 1 only. Don't forget to put a newline character and to flush the output stream after you print your query.