This is an interactive problem. In the interaction section below you will see the information about flushing the output.
Vera is baking an ice cream cake consisting of
Two flavours
Vera does not know the tastiness of each flavour but she can take a nibble of any two different flavours
Given integer
Constraints
For all subtasks:
Subtask 1 [25%]
Subtask 2 [25%]
Subtask 3 [50%]
Input Specification
Format:
Output Specification
To print the answer, print one line in the format:
2
where
If there are multiple delicious flavours print any of them.
After printing the answer your program must terminate.
Interaction
First you must read
To ask Vera to nibble flavours
1
Note, you must flush your output to get a response.
Vera's response will be printed on one line in the format:
If
If your nibble request is not in the correct format or you ask for too many nibbles you will get WA.
To flush you can use (just after printing an integer and end-of-line):
fflush(stdout)
in C++;System.out.flush()
in Java;stdout.flush()
in Python;flush(output)
in Pascal.
Sample Input
3
0
1
1
0
0
1
1
0
Sample Output
1 1 2 1 1
1 1 3 1 1
1 2 1 1 3
1 2 2 2 1
1 2 3 2 1
1 3 1 2 1
1 3 2 3 1
1 3 3 3 2
2 3 2
Explanation of Sample Output
This is a possible interaction when the cake has the following tastiness:
2 1 3
6 5 4
7 9 8
Comments