#P3398. Permutations

Permutations

当前没有测试数据。

Description

A permutation of integers 1,2,,n is called beautiful if there are no adjacent elements whose difference is 1.

Given n, construct a beautiful permutation if such a permutation exists.

Input Format

The only input line contains an integer n.

Output Format

Print a beautiful permutation of integers 1,2,,n. If there are several solutions, you may print any of them. If there are no solutions, print "NO SOLUTION".
5
4 2 5 3 1

Hint

1n106

Example 2

Input:

3

Output:

NO SOLUTION

Source

CSES