PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000190. Năm, năm ở mọi nơi (Five, Five Everywhere)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Năm, năm ở mọi nơi (Five, Five Everywhere)

Five, Five Everywhere

Phuoc Hung OJ ID: PRIME000195
Source: AtCoder ABC096 D (PHOJ Extended, one input instance per run).

Problem statement

Given NN, output exactly NN distinct primes, each at most 55 55555\,555, such that the sum of any five entries at different positions is composite. Any valid sequence is accepted.

Input

One integer NN.

Output

One line of NN distinct primes separated by spaces.

Subtasks

  • Subtask 1 (20 points): 5≤N≤195\le N\le19.
  • Subtask 2 (30 points): 20≤N≤3520\le N\le35.
  • Subtask 3 (50 points): 36≤N≤5536\le N\le55.

Example

Input

5

Output

11 31 41 61 71

Explanation: All five numbers are distinct primes congruent to 1 modulo 5. Their sum is divisible by 5 and is larger than 5.