CSES - Permutation Prime Sums
  • Time limit: 1.00 s
  • Memory limit: 512 MB

Given nn, create two permutations aa and bb of size nn such that ai+bia_i+b_i is prime for i=1,2,,ni=1,2,\dots,n.

Input

The only line has an integer nn.

Output

Print two permutations. You can print any valid solution. If there are no solutions, print IMPOSSIBLE.

Constraints

  • 1n1051 \le n \le 10^5

Example

Input:

5

Output:

2 1 3 5 4
5 1 4 2 3  

Explanation: The sums are 2+5=72+5=7, 1+1=21+1=2, 3+4=73+4=7, 5+2=75+2=7 and 4+3=74+3=7 which all are primes.