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

#GL0000104. Dãy số có tính chất ƯCLN đặc biệt (GCD Sequence)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Dãy số có tính chất ƯCLN đặc biệt (GCD Sequence)

GCD Sequence

Source: AtCoder

Version: Phuoc Hung OJ Extended

Problem Statement

Construct a set SS of exactly NN distinct positive integers not exceeding 3000030000. The GCD of all elements must be 11. For every a∈Sa\in S, the GCD of aa and the sum of all other elements of SS must be greater than 11. Print the numbers in any order; a solution always exists.

Input

One line containing an integer NN.

Output

Print exactly NN distinct positive integers, each at most 3000030000, satisfying all requirements.

Subtasks

  • Subtask 1 (20 points): 3≤N≤1003\le N\le 100.
  • Subtask 2 (30 points): 3≤N≤30003\le N\le 3000.
  • Subtask 3 (50 points): 3≤N≤200003\le N\le 20000.

Examples

Input

3

Output

2 5 63

Explanation

One valid output is 2 5 63. Their overall GCD is 11. Moreover, gcd⁡(2,5+63)=2\gcd(2,5+63)=2, gcd⁡(5,2+63)=5\gcd(5,2+63)=5, and gcd⁡(63,2+5)=7\gcd(63,2+5)=7, all greater than 11.