Codeforces Beta Round 61 (Div. 2)
D
Petya and His Friends
Codeforces
1700
原题
← CE →
翻译中…

Little Petya has a birthday soon. Due this wonderful event, Petya's friends decided to give him sweets. The total number of Petya's friends equals to $*n*$.

翻译中…

Let us remind you the definition of the greatest common divisor: $*GCD*(*a*_{1}, ..., *a*_{*k*}) = *d*$, where $*d*$ represents such a maximal positive number that each $*a*_{*i*}$ ($1 ≤ *i* ≤ *k*$) is evenly divisible by $*d*$. At that, we assume that all $*a*_{*i*}$'s are greater than zero.

翻译中…

Knowing that Petya is keen on programming, his friends has agreed beforehand that the $1$-st friend gives $*a*_{1}$ sweets, the $2$-nd one gives $*a*_{2}$ sweets, ..., the $*n*$-th one gives $*a*_{*n*}$ sweets. At the same time, for any $*i*$ and $*j*$ ($1 ≤ *i*, *j* ≤ *n*$) they want the $*GCD*(*a*_{*i*}, *a*_{*j*})$ not to be equal to $1$. However, they also want the following condition to be satisfied: $*GCD*(*a*_{1}, *a*_{2}, ..., *a*_{*n*}) = 1$. One more: all the $*a*_{*i*}$ should be distinct.

翻译中…

Help the friends to choose the suitable numbers $*a*_{1}, ..., *a*_{*n*}$.

翻译中…

Input

翻译中…

The first line contains an integer $*n*$ ($2 ≤ *n* ≤ 50$).

翻译中…

Output

翻译中…

If there is no answer, print "-1" without quotes. Otherwise print a set of $*n*$ distinct positive numbers $*a*_{1}, *a*_{2}, ..., *a*_{*n*}$. Each line must contain one number. Each number must consist of not more than $100$ digits, and must not contain any leading zeros. If there are several solutions to that problem, print any of them.

翻译中…

Do not forget, please, that all of the following conditions must be true:

翻译中…
  • For every $*i*$ and $*j*$ ($1 ≤ *i*, *j* ≤ *n*$): $*GCD*(*a*_{*i*}, *a*_{*j*}) ≠ 1$
  • $*GCD*(*a*_{1}, *a*_{2}, ..., *a*_{*n*}) = 1$
  • For every $*i*$ and $*j*$ ($1 ≤ *i*, *j* ≤ *n*, *i* ≠ *j*$): $*a*_{*i*} ≠ *a*_{*j*}$
翻译中…

Please, do not use %lld specificator to read or write 64-bit integers in C++. It is preffered to use cout (also you may use %I64d).

翻译中…

样例

Input #1
3
Output #1
99
55
11115
InputCopy OutputCopy
Input #2
4
Output #2
385
360
792
8360
InputCopy OutputCopy
题目信息
题号
66D
时间限制
2 s
内存限制
256 MB
标签
构造
数学
数论

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。