At the Phoenix Wonderland carnival, you found a mysterious booth that proposes an interesting challenge. The operator (some strange floating nuigurumi) will give you an integer
Constraints
Subtask 1 [10%]
Subtask 2 [20%]
Subtask 3 [30%]
Subtask 4 [40%]
No additional constraints.
Input Specification
The first and only line of input contains a single integer
Output Specification
If there exists no valid permutation, output
Otherwise, output
Sample Input 1
7
Sample Output 1
7 2 4 6 3 5 1
Explanation for Sample 1
Note that the adjacent pairs have sums of
Sample Input 2
2
Sample Output 2
-1
Explanation for Sample 2
Note that
Comments