Count or construct all valid point sets formed from a simple geometric rule over integer coordinates.
Problem
You are given a positive integer . Consider a set of points with integer coordinates on a 2D plane. A set is called beautiful if it satisfies the geometric rule described in the task and contains exactly points.
Your job is to determine whether such a set exists, and if so, construct one valid example of a beautiful set of points.
The intended solution is based on observing the pattern of valid point placement and building the answer directly rather than searching over all possibilities.
Notes
- Points are represented as pairs .
- Any valid construction is accepted.
- If multiple answers exist, output any one of them.
Input Format
- The first line contains an integer .
Output Format
- If a beautiful set of points can be constructed, output the coordinates of the points in any valid order.
- Otherwise, output the appropriate impossible indication required by the problem statement.
Constraints
- is within the problem's original limits.
- Coordinates should be integers.
- The construction must satisfy the geometric condition from the statement.
Example 1
Input
3
Output
0 0 1 0 0 1
Explanation
This is a small illustrative construction of three integer points. The exact validity depends on the hidden geometric condition from the original problem statement.
Premium problem context
Unlock deeper context for this problem
Premium adds guided hints, editorial links, similar variants, discussion resources, and concept maps so you can understand why a problem matters, not just solve it once.