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>
struct _POINT {
  double x, y;
};
struct _LINE {
  double a, b, c;
};
double rabs(double a) {
  if (a < 0) return -a;
  return a;
}
double dislp(struct _LINE l, struct _POINT p) {
  return rabs(l.a * p.x + l.b * p.y + l.c) / sqrt(l.a * l.a + l.b * l.b);
}
int n;
int lp;
double ta, res;
struct _POINT p[40000 * 2 + 5];
struct _POINT np;
struct _LINE ol, vl;
void cal_line(struct _POINT a, struct _POINT b) {
  ol.a = a.y - b.y;
  ol.b = b.x - a.x;
  ol.c = -ol.a * a.x - ol.b * a.y;
  vl.a = ol.b;
  vl.b = -ol.a;
  vl.c = -vl.a * a.x - vl.b * a.y;
  if (vl.b == 0) {
    np.y = a.y + 5;
    np.x = (-np.y * vl.b - vl.c) / vl.a;
  } else {
    np.x = a.x + 5;
    np.y = (-np.x * vl.a - vl.c) / vl.b;
  }
}
double rarea(int s, int e) {
  double ret = 0;
  for (int i = s; i < e; i++) {
    ret += p[i].x * p[i + 1].y;
    ret -= p[i].y * p[i + 1].x;
  }
  ret += p[e].x * p[s].y;
  ret -= p[e].y * p[s].x;
  ret = rabs(ret / 2);
  return ret;
}
double ccw(struct _POINT a, struct _POINT b, struct _POINT c) {
  double ret = 0;
  ret =
      (a.x * b.y + b.x * c.y + c.x * a.y) - (b.x * a.y + c.x * b.y + a.x * c.y);
  return ret;
}
void process() {
  lp = 1;
  cal_line(p[0], p[1]);
  for (int i = lp + 1; i < 2 * n; i++) {
    if (dislp(vl, p[lp]) > dislp(vl, p[i]) ||
        ccw(p[0], np, p[i]) * ccw(p[0], np, p[1]) < 0) {
      break;
    }
    lp = i;
  }
  double i1 = dislp(ol, p[lp]);
  double i2 = dislp(vl, p[lp]);
  double i3 = rarea(0, lp);
  ta = dislp(ol, p[lp]) * dislp(vl, p[lp]) / 2.0 - rarea(0, lp);
  if (ta < res || res == -2147483647) res = ta;
  for (int i = 1; i < n; i++) {
    cal_line(p[i], p[i + 1]);
    for (int j = lp + 1; j < 2 * n; j++) {
      double i1 = dislp(vl, p[lp]);
      double i2 = dislp(vl, p[j]);
      double i3 = ccw(p[i], np, p[j]);
      double i4 = ccw(p[i], np, p[i + 1]);
      if (dislp(vl, p[lp]) > dislp(vl, p[j]) ||
          ccw(p[i], np, p[j]) * ccw(p[i], np, p[i + 1]) < 0) {
        break;
      }
      lp = j;
    }
    double i1 = dislp(ol, p[lp]);
    double i2 = dislp(vl, p[lp]);
    double i3 = rarea(i, lp);
    ta = dislp(ol, p[lp]) * dislp(vl, p[lp]) / 2.0 - rarea(i, lp);
    if (ta < res) res = ta;
  }
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%lf%lf", &p[i].x, &p[i].y);
    p[i + n].x = p[i].x;
    p[i + n].y = p[i].y;
  }
  res = -2147483647;
  process();
  for (int i = 0; i < n; i++) {
    struct _POINT temp = p[i];
    p[i] = p[2 * n - 1 - i];
    p[2 * n - 1 - i] = temp;
  }
  process();
  printf("%.10lf\n", res);
  return 0;
}