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;
  Point() {}
  Point(double a, double b) {
    x = a;
    y = b;
  }
  Point operator-(Point B) { return Point(x - B.x, y - B.y); }
};
struct Line {
  double A, B, C;
  Line() {}
  Line(Point P, Point Q) {
    A = P.y - Q.y;
    B = Q.x - P.x;
    C = P.x * Q.y - Q.x * P.y;
  }
  Line Ver(Point P) {
    Line res;
    res.A = -B;
    res.B = A;
    res.C = -(res.A * P.x + res.B * P.y);
    return res;
  }
  Point Inter(Line a) {
    Point res;
    res.x = (B * a.C - a.B * C) / (A * a.B - a.A * B);
    res.y = (A * a.C - a.A * C) / (a.A * B - a.B * A);
    return res;
  }
};
int n;
vector<Point> p;
double Cp(Point A, Point B) { return A.x * B.y - A.y * B.x; }
double Dp(Point A, Point B) { return A.x * B.x + A.y * B.y; }
Point Vec(int i) { return p[i + 1] - p[i]; }
double Area(Point A, Point B, Point C) {
  return fabs(A.x * B.y - A.y * B.x + B.x * C.y - B.y * C.x + C.x * A.y -
              C.y * A.x) /
         2.0;
}
double ans = 1e20;
int Mak() {
  double area;
  int i, j = 0;
  for (i = 0; i < n; i++) {
    if (j == i) {
      area = Area(p[i], p[i + 1], p[i + 2]);
      j++;
    }
    if (j == i + 1 && Dp(Vec(i), Vec(j)) < (1e-9)) {
      puts("0.0000000000000000000");
      exit(0);
    }
    while (Dp(Vec(i), Vec(j + 1)) > -(1e-9)) {
      area += Area(p[i], p[j + 1], p[j + 2]);
      j++;
    }
    Point C = Line(p[i], p[i + 1]).Ver(p[j + 1]).Inter(Line(p[i], p[i + 1]));
    double tri = Area(p[i], p[j + 1], C);
    if (ans > tri - area) ans = tri - area;
    area -= Area(p[i], p[i + 1], p[j + 1]);
  }
  return 0;
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    double a, b;
    scanf("%lf %lf", &a, &b);
    p.push_back(Point(a, b));
  }
  if (Cp(p[1] - p[0], p[2] - p[0]) < 0) reverse(p.begin(), p.end());
  for (int i = 0; i < n; i++) p.push_back(p[i]);
  Mak();
  for (int i = 0; i < 2 * n; i++) {
    p[i].x = -p[i].x;
  }
  reverse(p.begin(), p.end());
  Mak();
  printf("%.10f\n", ans);
  return 0;
}