Axis of symmetry of the quadrilateral#1362

Axis of symmetry of the quadrilateral

1 second
64 megabytes
Medium

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

Input

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

Output

Output one integer – the number of axes of symmetry.

Examples

Example 1

Loading
Loading