Codeforces Round 191 (Div. 2)
B
Hungry Sequence
Codeforces
1200
原题
← AC →
翻译中…

Iahub and Iahubina went to a date at a luxury restaurant. Everything went fine until paying for the food. Instead of money, the waiter wants Iahub to write a Hungry sequence consisting of $*n*$ integers.

翻译中…

A sequence $*a*_{1}$, $*a*_{2}$, ..., $*a*_{*n*}$, consisting of $*n*$ integers, is Hungry if and only if:

翻译中…
  • Its elements are in increasing order. That is an inequality $*a*_{*i*} < *a*_{*j*}$ holds for any two indices $*i*, *j*$ $(*i* < *j*)$.
  • For any two indices $*i*$ and $*j*$ $(*i* < *j*)$, $*a*_{*j*}$ must not be divisible by $*a*_{*i*}$.
翻译中…

Iahub is in trouble, so he asks you for help. Find a Hungry sequence with $*n*$ elements.

翻译中…

Input

翻译中…

The input contains a single integer: $*n*$ ($1 ≤ *n* ≤ 10^{5}$).

翻译中…

Output

翻译中…

Output a line that contains $*n*$ space-separated integers $*a*_{1}$ $*a*_{2}$, ..., $*a*_{*n*}$ $(1 ≤ *a*_{*i*} ≤ 10^{7})$, representing a possible Hungry sequence. Note, that each $*a*_{*i*}$ must not be greater than $10000000$ ($10^{7}$) and less than $1$.

翻译中…

If there are multiple solutions you can output any one.

翻译中…

样例

Input #1
3
Output #1
2 9 15
InputCopy OutputCopy
Input #2
5
Output #2
11 14 20 27 31
InputCopy OutputCopy
题目信息
题号
327B
时间限制
1 s
内存限制
256 MB
标签
数学

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