- Time limit: 1.00 s
- Memory limit: 512 MB
Given , create two permutations and of size such that is prime for .
Input
The only line has an integer .
Output
Print two permutations. You can print any valid solution. If there are no solutions, print IMPOSSIBLE
.
Constraints
Example
Input:
5
Output:
2 1 3 5 4 5 1 4 2 3
Explanation: The sums are , , , and which all are primes.