Two polygons are similar if all of their corresponding angles are equal and all of their corresponding side lengths are in the same ratio. Two similar polygons may be rotated, reflected (mirrored), and translated relative to each other. The ratio of the lengths of corresponding sides is called their similarity ratio.
Given two polygons, determine whether they are similar. If they are, report how their sizes relate and how their vertices correspond.
The first line contains the number of vertices $N$ of each polygon ($3 \le N \le 200,000$).
The second line contains the coordinates of the first polygon's vertices in order as $2 \cdot N$ integers: $x_1\ y_1\ x_2\ y_2\ \dots\ x_N\ y_N$. Each coordinate is an integer between $-10^9$ and $10^9$.
The third line contains the second polygon's vertex coordinates in the same format.
The vertices of each polygon may be given in either clockwise or counterclockwise order. The given points always form a valid simple polygon with no two coincident vertices, no straight ($180^\circ$) interior angle, and no self-intersection.
If the two polygons are not similar, print $-1$ on a single line.
Otherwise, print two lines.