CF66D.Petya and His Friends

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

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 nn .

Let us remind you the definition of the greatest common divisor: GCD(a1,...,ak)=dGCD(a_{1},...,a_{k})=d , where dd represents such a maximal positive number that each aia_{i} ( 1<=i<=k1<=i<=k ) is evenly divisible by dd . At that, we assume that all aia_{i} 's are greater than zero.

Knowing that Petya is keen on programming, his friends has agreed beforehand that the 11 -st friend gives a1a_{1} sweets, the 22 -nd one gives a2a_{2} sweets, ..., the nn -th one gives ana_{n} sweets. At the same time, for any ii and jj ( 1<=i,j<=n1<=i,j<=n ) they want the GCD(ai,aj)GCD(a_{i},a_{j}) not to be equal to 11 . However, they also want the following condition to be satisfied: GCD(a1,a2,...,an)=1GCD(a_{1},a_{2},...,a_{n})=1 . One more: all the aia_{i} should be distinct.

Help the friends to choose the suitable numbers a1,...,ana_{1},...,a_{n} .

输入格式

The first line contains an integer nn ( 2<=n<=502<=n<=50 ).

输出格式

If there is no answer, print "-1" without quotes. Otherwise print a set of nn distinct positive numbers a1,a2,...,ana_{1},a_{2},...,a_{n} . Each line must contain one number. Each number must consist of not more than 100100 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 ii and jj ( 1<=i,j<=n1<=i,j<=n ): GCD(ai,aj)1GCD(a_{i},a_{j})≠1
  • GCD(a1,a2,...,an)=1GCD(a_{1},a_{2},...,a_{n})=1
  • For every ii and jj ( 1<=i,j<=n,ij1<=i,j<=n,i≠j ): aiaja_{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).

输入输出样例

  • 输入#1

    3
    

    输出#1

    99
    55
    11115
    
  • 输入#2

    4
    

    输出#2

    385
    360
    792
    8360
    
首页