Problem: One winter evening the Hedgehog was relaxing at home in his cozy armchair and clicking through the TV channels. Stumbled on an issue of «TopShop», the Hedgehog was about to change the channel when all of a sudden he was stopped by an advertisement of a new wondrous invention.

Actually, a vacuum cleaner was advertised there. It was called Marvellous Vacuum and it doesn't even need a human to operate it while it cleans! The vacuum cleaner can move around the flat on its own: it moves in some direction and if it hits an obstacle there, it automatically chooses a new direction. Sooner or later this vacuum cleaner will travel through all the room and clean it all. Having remembered how much time the Hedgehog spends every time on cleaning (surely, no less than a half of the day), he got eager to buy this wonder.

However, the Hedgehog quickly understood that the cleaner has at least one weak point: it won't clean well in the room's corners because it often won't able to reach the corner due to its shape. To estimate how serious is this drawback in practice, the Hedgehog asked you to write for him the corresponding program.

You will be given the cleaner's shape in the top view. We will consider only the cases when the vacuum cleaner is represented as a convex polygon. The room is some infinitely large rectangle. We consider one corner of this room and want to find such a rotation of the vacuum cleaner so that it, being pushed into this corner, will leave the minimum possible area in the corner uncovered.

Input

The first line contains an integer N which represents the number of vertices of the vacuum cleaner's polygon (3 ≤ N ≤ 4·104). Then follow N lines each containing two numbers — the coordinates of a vertex of the polygon. All the coordinates are integer and their absolute values do not exceed 106.

It is guaranteed that the given polygon is nondegenerate and convex (no three points lie on the same line). The polygon vertices are given in a clockwise or counter-clockwise direction.

Output

Print the minimum possible uncovered area. The answer will be accepted if it is within 10 - 6 of absolute or relative error from the correct answer.

Examples

Input

4
0 0
1 0
1 1
0 1


Output

0.00000000000000000000

Input

8
1 2
2 1
2 -1
1 -2
-1 -2
-2 -1
-2 1
-1 2


Output

0.50000000000000000000

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
struct point {
  double x, y;
};
double dist(point P, point Q) {
  double dx = P.x - Q.x, dy = P.y - Q.y;
  return sqrt(dx * dx + dy * dy);
}
double area(point P, point Q, point R) {
  return ((Q.x - P.x) * (R.y - P.y) - (Q.y - P.y) * (R.x - P.x)) / 2.0;
}
double inprod(point O, point P, point Q) {
  return (P.x - O.x) * (Q.x - O.x) + (P.y - O.y) * (Q.y - O.y);
}
int N;
point A[40010];
double func(void) {
  int i, j;
  if (area(A[0], A[1], A[2]) < 0.0)
    for (i = 1; i < N - i; i++) swap(A[i], A[N - i]);
  j = 0;
  double ans = 1.0E+18, area2 = 0.0;
  for ((i) = 0; (i) < (int)(N); (i)++) {
    area2 -= area(A[i], A[(i + 1) % N], A[j]);
    while (inprod(A[i], A[(i + 1) % N], A[j]) <
           inprod(A[i], A[(i + 1) % N], A[(j + 1) % N])) {
      area2 += area(A[(i + 1) % N], A[j], A[(j + 1) % N]);
      j = (j + 1) % N;
    }
    if (j == (i + 1) % N) return 0.0;
    double c = -inprod(A[(i + 1) % N], A[i], A[j]) /
               dist(A[(i + 1) % N], A[i]) / dist(A[(i + 1) % N], A[j]);
    double tmp = dist(A[(i + 1) % N], A[j]) * dist(A[(i + 1) % N], A[j]) * c *
                     sqrt(max(1.0 - c * c, 0.0)) / 2.0 -
                 area2;
    ans = min(ans, tmp);
  }
  return ans;
}
int main(void) {
  int i;
  scanf("%d", &N);
  for ((i) = 0; (i) < (int)(N); (i)++) scanf("%lf%lf", &A[i].x, &A[i].y);
  double ans = func();
  for ((i) = 0; (i) < (int)(N); (i)++) A[i].x = -A[i].x;
  double tmp = func();
  ans = min(ans, tmp);
  printf("%.9f\n", ans);
  return 0;
}