atcoder#CF16EXHIBITIONFINALI. 90 and 270
90 and 270
Score : points
Problem Statement
Construct an -gon that satisfies the following conditions:
- The polygon is simple (see notes for the definition).
- Each edge of the polygon is parallel to one of the coordinate axes.
- Each coordinate is an integer between and , inclusive.
- The vertices are numbered through in counter-clockwise order.
- The internal angle at the -th vertex is exactly degrees.
In case there are multiple possible answers, you can output any.
Notes
A polygon is called simple if each edge has a positive length, and no two edges have a common point (except for adjacent edges touching at a vertex).
Constraints
- is either or .
Input
The input is given from Standard Input in the following format:
:
Output
In case the answer exists, print the answer in the following format:
:
Here are the coordinates of the -th vertex.
In case the answer doesn't exist, print a single -1
.
8
90
90
270
90
90
90
270
90
0 0
2 0
2 1
3 1
3 2
1 2
1 1
0 1
3
90
90
90
-1