#c007. Permutations
Permutations
Problem Statement
出處: cses
A permutation of integers is called beautiful if there are no adjacent elements whose difference is . Given , construct a beautiful permutation if such a permutation exists.
Input
The only input line contains an integer .
Output
Print a beautiful permutation of integers . If there are several solutions, you may print any of them. If there are no solutions, print "NO SOLUTION".
Example
5
4 2 5 3 1
3
NO SOLUTION