QOJ.ac

QOJ

Time Limit: 1 s Memory Limit: 32 MB Total points: 100

#11047. Reconstruction of Byteland

統計

Everyone get to work! Byteland needs to be reconstructed after a devastating war!

You are responsible for assigning postal codes to bytean cities. Each city should receive one postal code - a positive integer not greater than $10^{9}$. Different cities should be assigned different postal codes.

The Bytean Postal Service is organized in a quite strange way; a letter can be sent from city $ A $ to city $ B $ only if the postal codes of these two cities have a common divisor greater than 1. Obviously, one of your objectives is that there should be a possibility of sending letters directly from every city to every other city after the postal codes are assigned.

Additionally, the new anti-corruption law requires that for each set of cities, containing more than a half of bytean cities, postal codes assigned to cities from this set must not have any common divisor greater than one.

Write a program that:

  • reads the number of cities of Byteland from the standard input,
  • assigns a postal code to each bytean city,
  • writes the assignment to the standard output.

Input Format

The first and only line of input contains one integer $ n $ ($4 ≤ n ≤ 100$) denoting the number of cities of Byteland.

Output Format

The output should consist of exactly $ n $ lines. The $ i $-th line should contain one positive integer not greater than $10^{9}$ - the postal code of the $ i $-th bytean city. You can assume that for each possible input there exists a valid assignment of postal codes to the cities. If there are multiple correct solutions, your program should output any one of them.

Example

Input

5

Output

714
2090
4485
29029
215441
About Issues

We understand that our problem archive is not perfect. If you find any issues with the problem, including the statement, scoring configuration, time/memory limits, test cases, etc.

You may use this form to submit an issue regarding the problem. A problem moderator will review your issue and proceed it properly.

STOP! Before you submit an issue, please READ the following guidelines:

  1. This is not a place to publish a discussion, editorial, or requests to debug your code. Your issue will only be visible by you and problem moderators. Other users will not be able to view or reply your issues.
  2. Do not submit duplicated issues. If you have already submitted one, please wait for an moderator to review it. Submitting multiple issues will not speed up the review process and might cause your account to be banned.
  3. Issues must be filed in English or Chinese only.
  4. Be sure your issue is related to this problem. If you need to submit an issue regarding another problem, contest, category, etc., you should submit it to the corresponding page.

Active Issues 0

No issues in this category.

Closed/Resolved Issues 0

No issues in this category.