There are slots numbered from left to right. Exactly one wire endpoint is plugged into each slot. The wires are numbered , and the two endpoints of wire are initially plugged into slots and .
Dadas may perform the following untangling operation any number of times.
Choose two distinct wires and four slots . Immediately before the operation, wire must connect slots and , and wire must connect slots and . Unplug the endpoints in slots and and plug each endpoint into the other slot. After the operation, wire connects slots and , and wire connects slots and .
Define a sequence of length representing the current arrangement. If an endpoint of wire is plugged into slot , then .
Among all sequences obtainable after zero or more untangling operations, find the lexicographically smallest one.
Input
The input is given from Standard Input in the following format:
Each case is given in the following format:
Output
For each test case, print the lexicographically smallest sequence on one line, separated by spaces.
Constraints
- .
- .
- ().
- The values are pairwise distinct.
- The sum of over all test cases does not exceed .
Subtasks
Samples
In the first test case, one operation on the two wires produces the sequence .
In the second test case, one operation on wires and produces the printed sequence.