e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
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?

Input

In one line contains 8 digitsx1, y1, x2, y2, x3, y3, x4, y4coordinates of the vertices of a quadrilateral.

-50 x1, y1, x2, y2, x3, y3, x4, y4 50

Output

One number - the number of axes of symmetry.

Time limit 1 second
Memory limit 64 MiB
Input example #1
0 0 0 5 5 5 5 0
Output example #1
4