Natus ad codicem#12197

Natus ad codicem

1 second
256 megabytes
Medium

A permutation of length is an array p=[p_1,p_2,\dots,p_n], which contains every integer from to (inclusive) and each number appears exactly once. For example, p=[3,1,4,2,5] is a permutation of length .

Given an integer , construct an array of integers between and with length such that the number of subsegments that are permutations is not less than \lfloor \frac{3n}{2} \rfloor-1.

Input

The first and only line contains one integer (1 \le n \le 3000).

Output

Output integers between and — the elements of your array. If there are multiple arrays with the maximum number of such subsegments, you can output any of them.

Examples

Example 1

Loading
Loading

Note

There are good subsegments:

  1. [2,1,3]

It could be proven that there is no better array.

Scoring

  1. ( points): n = 1

  2. ( points): n = 2;

  3. ( points): n \le 8;

  4. ( points): no additional constraints