Axis of symmetry of the quadrilateral#1362

Axis of symmetry of the quadrilateral

1 Sekunde
64 Megabyte
Mittel

Given the coordinates of the consecutive vertices of a convex quadrilateral, determine how many axes of symmetry this figure has.

Eingabe

A single line contains 8 integers: x_1, y_1, x_2, y_2, x_3, y_3, x_4, y_4 – the coordinates of the vertices of the quadrilateral.

-50 \le x_1, y_1, x_2, y_2, x_3, y_3, x_4, y_4 \le 50

Ausgabe

Output one integer – the number of axes of symmetry.

Beispiele

Beispiel 1

Loading
Loading