Score : $300$ points
Takahashi and Aoki will play the following game against each other.
Starting from Takahashi, the two alternatingly declare an integer between $1$ and $2N+1$ (inclusive) until the game ends. Any integer declared by either player cannot be declared by either player again. The player who is no longer able to declare an integer loses; the player who didn't lose wins.
In this game, Takahashi will always win. Your task is to actually play the game on behalf of Takahashi and win the game.
This task is an interactive task (in which your program and the judge program interact with each other via inputs and outputs).
Your program plays the game on behalf of Takahashi, and the judge program plays the game on behalf of Aoki.
First, your program is given a positive integer $N$ from Standard Input. Then, the following procedures are repeated until the game ends.
Input | Output | Description |
---|---|---|
$2$ | First, an integer $N$ is given. | |
$1$ | Takahashi declares an integer $1$. | |
$3$ | Aoki declares an integer $3$. | |
$2$ | Takahashi declares an integer $2$. | |
$4$ | Aoki declares an integer $4$. | |
$5$ | Takahashi declares an integer $5$. | |
$0$ | Aoki has no more integer to declare, so Takahashi wins, and the game ends. |