Quadrilateral#144

Quadrilateral

1 second
128 megabytes
Very easy

A quadrilateral is given on the plane by the coordinates of its vertices in order. Determine the number of right angles in the quadrilateral.

Input

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 .

Output

Print a single integer — the number of right angles in the quadrilateral.

Examples

Example 1

Loading
Loading