A quadrilateral is given on the plane by the coordinates of its vertices in order. Determine the number of right angles in the quadrilateral.
The input consists of the coordinates of the four vertices of the quadrilateral in order. Each coordinate is an integer with an absolute value not greater than .
Print a single integer — the number of right angles in the quadrilateral.
Example 1