Problems
Axis of symmetry of the quadrilateral
Axis of symmetry of the quadrilateral
Given the coordinates of the successive vertices of a convex quadrilateral. How many axes of symmetry does this figure?
\InputFile
In one line contains \textbf{8} digits \textbf{x_1}, \textbf{y_1}, \textbf{x_2}, \textbf{y_2}, \textbf{x_3}, \textbf{y_3}, \textbf{x_4}, \textbf{y_4} -- coordinates of the vertices of a quadrilateral.
\textbf{-50} ≤\textbf{ x_1}, \textbf{y_1}, \textbf{x_2}, \textbf{y_2}, \textbf{x_3}, \textbf{y_3}, \textbf{x_4}, \textbf{y_\{4 \}}≤\textbf{ 50}
\OutputFile
One number - the number of axes of symmetry.
Input example #1
0 0 0 5 5 5 5 0
Output example #1
4