You are given a sequence and an integer . For each , consider the minimum of the consecutive elements .
The sequence is generated rather than provided directly. For every ,
The values are given in the input.
The input is given in the following format:
For each case, let for . Print on one line, where denotes bitwise XOR.
Each case is given in the following format:
| 2 | 25 |
|
| 3 | 60 | No additional constraints. |