Easy Geometry#7639

Easy Geometry

1 second
128 megabytes
Very hard

Eva studies geometry. The current topic is about convex polygons, but Eva prefers rectangles. Eva's workbook contains drawings of several convex polygons and she is curious what is the area of the maximum rectangle that fits inside each of them.

prb7639.gif

Help Eva! Given the convex polygon, find the rectangle of the maximum possible area that fits inside this polygon. Sides of the rectangle must be parallel to the coordinate axes.

Input

The first line contains a single integer (3 \le n \le 100000) - the number of sides of the polygon. The following lines contain Cartesian coordinates of the polygon's vertices - two integers x_i and y_i (-10^9 \le x_i, y_i \le 10^9) per line. Vertices are given in the clockwise order. The polygon is convex.

Output

Output four real numbers x_{min}, y_{min}, x_{max} and y_{max} - the coordinates of two rectangle's corners (x_{min} < x_{max}, y_{min} < y_{max}). The rectangle must fit into the polygon and have the maximum possiblearea.

The absolute precision of the coordinates should be at least 10^{-5}.

The absolute or relative precision of the rectangle area should be at least 10^{-5}. That is, if A' is the actual maximum possible area, the following must hold: \min(|A - A'|, |A - A'| / A') \le 10^{-5}.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading