- Time limit: 1.00 s
- Memory limit: 512 MB
A permutation of integers is called beautiful if there are no adjacent elements whose difference is .
Given , construct the lexicographically minimal beautiful permutation if such a permutation exists.
Input
The only line contains an integer .
Output
Print the lexicographically minimal beautiful permutation of integers . If there is no such permutation, print "NO SOLUTION".
Constraints
Example 1
Input:
5
Output:
1 3 5 2 4
Example 2
Input:
3
Output:
NO SOLUTION