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 JAVA):

Solution:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;

public class E {
    BufferedReader in;
    StringTokenizer st;
    PrintWriter out;

    static class Point {
        final int x, y;

        Point(int x, int y) {
            this.x = x;
            this.y = y;
        }

        long vmul(Point a) {
            return (long) x * a.y - (long) y * a.x;
        }

        long smul(Point a) {
            return (long) x * a.x + (long) y * a.y;
        }

        Point sub(Point that) {
            return new Point(x - that.x, y - that.y);
        }

        public String toString() {
            return "(" + x + "; " + y + ")";
        }
    }

    double addSquare(Point[] poly, int v, int h, Point hVector) {
        Point diffs = poly[v].sub(poly[h]);
        double a = (double) (hVector.smul(diffs)) / hVector.smul(hVector);
        if (a < 0) {
            throw new AssertionError();
        }
        double x = poly[h].x + hVector.x * a;
        double y = poly[h].y + hVector.y * a;
        return (poly[h].x * y - poly[h].y * x) + (x * poly[v].y - y * poly[v].x);
    }

    void solve() throws IOException {
        int n = nextInt();
        Point[] poly = new Point[n];
        for (int i = 0; i < n; ++i) {
            poly[i] = new Point(nextInt(), nextInt());
        }
        long area = poly[n - 1].vmul(poly[0]);
        for (int i = 1; i < n; ++i) {
            area += poly[i - 1].vmul(poly[i]);
        }
        if (area < 0) {
            Collections.reverse(Arrays.asList(poly));
            area = -area;
        }
        Point[] diffs = new Point[n];
        for (int i = 0; i < n; ++i) {
            diffs[i] = poly[(i + 1) % n].sub(poly[i]);
        }
        int h = 0, v = 0;
        for (int i = 0; i < n; ++i) {
            if (poly[i].y < poly[h].y || poly[i].y == poly[h].y && poly[i].x > poly[h].x) {
                h = i;
            }
            if (poly[i].x > poly[v].x || poly[i].x == poly[v].x && poly[i].y > poly[v].y) {
                v = i;
            }
        }
        if (h == v) {
            out.println(0);
            return;
        }

        Point hVector = new Point(1, 0);
        double myCurrentSquare = 0;
        for (int i = v; i != h; ) {
            int p = (i + n - 1) % n;
            myCurrentSquare += poly[i].vmul(poly[p]);
            i = p;
        }
        double optimal = myCurrentSquare + addSquare(poly, v, h, hVector);
        System.err.println(optimal / 2);
        for (int times = 0; times < 3 * n; ++times) {
            if (h == v) {
                out.println(0);
                return;
            }
            if (diffs[h].smul(diffs[v]) > 0) {
                //moving from v
                hVector = new Point(diffs[v].y, -diffs[v].x);
            } else {
                //moving from h
                hVector = diffs[h];
            }
            while (diffs[h].vmul(hVector) == 0) {
                int nh = (h + 1) % n;
                myCurrentSquare -= poly[nh].vmul(poly[h]);
                h = nh;
            }
            while (diffs[v].smul(hVector) == 0) {
                int nv = (v + 1) % n;
                myCurrentSquare += poly[nv].vmul(poly[v]);
                v = nv;
            }
            double ns = myCurrentSquare + addSquare(poly, v, h, hVector);
            if (optimal > ns) {
                optimal = ns;
                System.err.println(optimal / 2 + " " + v + " " + h);
            }
        }
        out.println(optimal / 2);
    }

    public void run() throws IOException {
        in = new BufferedReader(new InputStreamReader(System.in));
        out = new PrintWriter(System.out);
        eat("");
        solve();
        out.close();
        in.close();
    }

    void eat(String s) {
        st = new StringTokenizer(s);
    }

    String next() throws IOException {
        while (!st.hasMoreTokens()) {
            String line = in.readLine();
            if (line == null) {
                return null;
            }
            eat(line);
        }
        return st.nextToken();
    }

    int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    public static void main(String[] args) throws IOException {
        new E().run();
    }
}