Competitions

# 2022 Azerbaijan Round 1, 8-9-10-11 classes

# Divide into 2 groups

Divide the numbers **1**, **2**, ..., **n** into two groups so that the absolute difference between the sums of the elements in both groups be the smallest as possible.

#### Input

One integer **n** (**2** ≤ **n** ≤ `10`

).^{5}

#### Output

In the first line print two positive integers - the number of elements in the first and the second group.

In the second line print the elements from the first group, in the third line print the elements from the second group.

You can print the elements of each group in any order, but the elements in two groups must contain positive integers in the range [**1**, **n**].

Input example #1

4

Output example #1

2 2 1 4 2 3

Input example #2

5

Output example #2

3 2 1 2 4 3 5