Polo The Penguin And Xor Operation

medium
<a href="https://codeforces.com/contest/288/problem/C">https://codeforces.com/contest/288/problem/C</a>

Input Format

.

Output Format

.

Constraints

.

Notice

.

Example

Input
4
Output
20
0 2 1 4 3
Previous
K-lcm (hard Version)
Next
Random Teams

Related Questions