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;
int Sig(double a) { return a < -1e-8 ? -1 : (a > 1e-8); }
struct Point {
  double x, y;
  Point() {}
  Point(double x0, double y0) : x(x0), y(y0) {}
  void in() { scanf("%lf%lf", &x, &y); }
  void out() { printf("%.3f %.3f\n", x, y); }
  Point operator*(double t) { return Point(t * x, t * y); }
  double len() { return sqrt(x * x + y * y); }
  double operator*(Point pt) { return x * pt.y - y * pt.x; }
  double operator^(Point pt) { return pt.x * x + pt.y * y; }
  Point operator-(Point pt) { return Point(x - pt.x, y - pt.y); }
  Point operator+(Point pt) { return Point(x + pt.x, y + pt.y); }
  Point turnlen(double l) {
    double r = l / len();
    return Point(x * r, y * r);
  }
  bool operator==(Point pt) {
    if (fabs(x - pt.x) < 1e-8 && fabs(y - pt.y) < 1e-8)
      return true;
    else
      return false;
  }
};
double dis(Point a, Point b) { return (a - b).len(); }
double Area(Point a, Point b, Point c) { return fabs((b - a) * (c - a)) * 0.5; }
struct Line {
  Point p, q;
  Line() {}
  Line(Point p0, Point q0) : p(p0), q(q0) {}
};
double Dis_Point_to_Line(Point a, Line l) {
  Point b = l.p;
  Point c = l.q;
  double len = (b - c).len();
  double s = fabs((a - b) * (a - c));
  return s / len;
}
Point p[100010];
int n;
double mark[100010];
double solve() {
  double tmp = 1e20;
  mark[0] = mark[1] = 0;
  for (int i = 2; i < n; i++)
    mark[i] = mark[i - 1] + Area(p[0], p[i - 1], p[i]);
  int j = 2;
  for (int i = 0; i < n; i++) {
    Point o = p[i + 1] - p[i];
    o = Point(-o.y, o.x);
    while (o * (p[j + 1] - p[j]) <= 0) j = (j + 1) % n;
    double s;
    if (j > i)
      s = mark[j] - mark[i] - Area(p[0], p[i], p[j]);
    else {
      s = mark[i] - mark[j] - Area(p[0], p[i], p[j]);
      s = mark[n - 1] - s;
    }
    double x = Dis_Point_to_Line(p[j], Line(p[i], p[i + 1]));
    double z = dis(p[i], p[j]);
    double y = sqrt(z * z - x * x);
    double now = x * y * 0.5 - s;
    tmp = min(tmp, now);
  }
  return tmp;
}
void Change_to_Anticlockwise(Point p[], int n) {
  double sum = 0;
  for (int i = 0; i < n; i++) sum += p[i] * p[(i + 1) % n];
  if (sum < 0) {
    for (int i = 0; i < n / 2; i++) swap(p[i], p[n - i - 1]);
  }
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) p[i].in();
  Change_to_Anticlockwise(p, n);
  p[n] = p[0];
  p[n + 1] = p[1];
  bool flag = false;
  for (int i = 1; i <= n; i++) {
    if (Sig((p[i - 1] - p[i]) ^ (p[i + 1] - p[i])) >= 0) flag = true;
  }
  if (flag)
    printf("0.000000000000\n");
  else {
    double ans = 1e20;
    ans = min(ans, solve());
    for (int i = 0; i < n; i++) p[i].x = -p[i].x;
    for (int i = 0; i < n / 2; i++) swap(p[i], p[n - 1 - i]);
    p[n] = p[0];
    ans = min(ans, solve());
    printf("%.12f\n", ans);
  }
  return 0;
}