Juku is studying triangle similarity at school. Two triangles are similar when all pairs of corresponding angles are equal and the corresponding side lengths are proportional. Two similar triangles may be rotated, reflected, and translated with respect to each other. The ratio of the corresponding side lengths of two similar triangles is called their similarity coefficient.
For homework Juku is given several pairs of triangles and must determine the similarity relationship of each pair. Help Juku by writing a program that decides whether two triangles are similar and, if so, reports their similarity coefficient.
The first line contains six integers: the $x$ and $y$ coordinates of the three vertices of the first triangle, in the order $x_1\ y_1\ x_2\ y_2\ x_3\ y_3$. Each coordinate lies between $-10^9$ and $10^9$. The second line contains six integers in the same format, giving the vertices of the second triangle. The vertices may be listed in either clockwise or counterclockwise order. The three given points always form a triangle (there are no coincident points and no three collinear points).
Let $k$ be the similarity coefficient — how many times larger the first triangle is than the second (so $k < 1$ if the first triangle is smaller). Because all vertex coordinates are integers, every squared side length is an integer, so $k^2$ is always a rational number (while $k$ itself may be irrational). If the two triangles are similar, print $k^2$ as a reduced fraction p/q with $q \ge 1$ and $\gcd(p, q) = 1$; always print the denominator, even when it equals $1$ (for example, 4/1). If the two triangles are not similar, print -1.