Fuad's challenge#11683

Fuad's challenge

1 second
128 megabytes
Medium

With the launch of the "Technest" Scholarship Program in 2023 at the International Olympiad training camp, after hard trainings Fuad and Aykhan are playing a permutation puzzle game. Fuad challenges Aykhan to create a special sequence of numbers.

To win the challenge, Aykhan must generate a "composite sum permutation", a sequence where for every between and inclusive, the sum of the first numbers of the permutation of size is always composite.

A positive integer is considered composite if it has more than two positive integer divisors. For instance, integers like , and are composite, while 1, 3, 31, 89, 97, and are not.

A sequence of positive integers p = p_1, p_2, ..., p_n is defined as a permutation of length if it contains every integer between and inclusive exactly once.

We'll call a permutation p = p_1, p_2, ..., p_n a "composite sum permutation" if, for every index between and inclusive, the sum of the first elements of , denoted as p_1 + p_2 + ... + p_i, is a composite number.

Help Aykhan to generate the required permutation by writing a program.

Input

One single integer n~(1 \le n \le 100).

Output

If no composite sum permutation of length exists, print a single integer .

Otherwise, print integers p_1, p_2, ..., p_n such that p = p_1, p_2, ..., p_n is a "composite sum permutation".

If there are multiple composite sum permutations of length , you may print any of them.

Examples

In the first example for n = 3, there is no answer.

In the second example for n = 4, we can generate permutation "". Compute the prefix sums: "4, 6, 9, 10". Each of these sums is composite: 4 = 2 \cdot 2, 6 = 2 \cdot 3, 9 = 3 \cdot 3, 10 = 2 \cdot 5".

Example 1

Loading
Loading

Example 2

Loading
Loading

Scoring

This task consists of the following subtasks. If all tests of a subtask are passed, you will earn points for that subtask.

  1. ( points): n \le 10;

  2. ( points): no additional constraints;