Quadrilateral - 2#200

Quadrilateral - 2

1 second
64 megabytes
Easy

Four points are given on the plane. Determine whether they form a square.

Input

Four lines follow, each containing two integers — the coordinates of the given points. The coordinates are integers, and their absolute values do not exceed .

Output

If the given points are the vertices of a square, print YES. Otherwise, print NO.

Examples

Example 1

Loading
Loading