Four segments#2045

Four segments

1 second
64 megabytes
Hard

Four segments are given by the coordinates of their endpoints: (x_1, y_1) and (x_2, y_2), (x_3, y_3) and (x_4, y_4), (x_5, y_5) and (x_6, y_6), (x_7, y_7) and (x_8, y_8). Determine whether these segments form a rectangle. If they do, compute its area.

Input

The input consists of four lines. Each line contains the and coordinates of a segment's endpoints, separated by spaces. All coordinates are integers with absolute value not exceeding .

Output

If the segments form a rectangle, output YES on the first line and its area, rounded to two decimal places, on the second line. If the segments do not form a rectangle, output only one line containing NO.

Examples

Example 1

Loading
Loading