This is an output-only problem.
LaLa has a pile of magic circles in her laboratory.
A magic circle can be represented as a simple polygon drawn with special ink, and is usable if it is convex. i.e. all of its internal angles are equal or less than π.
LaLa plans to turn every magic circle into a usable one. However, they may lose all their magical power if done incorrectly. Thankfully, LaLa has the perfect magical tool for that.
The tool works as follows. When you toss in a magic circle, if the circle is usable, the tool reports that it is. Otherwise, it takes two distinct points u and v such that
Then, it rotates the u-v path by π around the midpoint of u and v. In other words, for each point w on the u-v path, w becomes u+v−w where the addition is done coordinate-wise over the two dimensional coordinate system over the paper the magic circle is drawn on. Note that the result of this modification is also a simple polygon.
Little did LaLa know, LaLa's sister, LiLi, overheard LaLa's plan. Knowing how lazy LaLa is, as a prank, LiLi will sneak in a magic circle that takes large amount of applications of the tool to make it usable. More specifically, LiLi will add a magic circle to the pile which is a union of equal or less than 1,000 line segments and the tool can perform some sequence of modifications with between 120,000 and 1,000,000 steps that turns it circle into a usable magic circle.
Write a program to help LiLi compute one such magic circle.
The output should be in the following format:
N
x_0 y_0
x_1 y_1
⋮
x_N−1 y_N−1
Q
a_0 b_0 c_0 d_0
a_1 b_1 c_1 d_1
⋮
a_Q−1 b_Q−1 c_Q−1 d_Q−1
where the initial magic circle is the union of N line segments connecting points (x_i,y_i) and (x_(i+1modN),y_(i+1modN)) for all integers 0≤i<N, and it has a sequence of modifications by the tool of length Q such that i-th modification choose the counterclockwise path from point (a_i,b_i) to (c_i,d_i).
The output should satisfy the following constraints:
Note that it's allowed to have two consecutive segments meeting at the angle π. Also note that it is not required to minimize any number, your program just have to satisfy all the output constraints.
Please note that the sample output above does not satisfy the condition 120,000≤Q≤1,000,000, thus it will give Wrong Answer verdict upon submission. It is there only to present the output format.
The following illustrates the initial magic circle for the sample output.

The following illustrates the sequence of usage of the tool to make it usable. The dotted part of the boundary is the path modified by the tool, which becomes the red part after the modification.
| Step 0 | Step 1 |
|---|---|
![]() | ![]() |
| Step 2 | Step 3 |
![]() | ![]() |
| Step 4 | |
![]() |