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.*;
import java.util.*;

public class Solution implements Runnable {
	
	private BufferedReader in;
	private PrintWriter out;
	private StringTokenizer st;
	
	static class Vector {
		final double x, y;
		
		Vector(double x, double y) {
			this.x = x;
			this.y = y;
		}
		
		double len2() {
			return x * x + y * y;
		}
		
		double len() {
			return Math.sqrt(len2());
		}
		
		double phi() {
			return Math.atan2(y, x);
		}
		
		Vector rotate(double alpha) {
			double s = Math.sin(alpha);
			double c = Math.cos(alpha);
			return new Vector(c * x + s * y, -s * x + c * y);
		}
		
		Vector sub(Vector b) {
			return new Vector(x - b.x, y - b.y);
		}
		
		@Override
		public String toString() {
			return x + "," + y;
		}
	}
	
	static double vMul(Vector a, Vector b) {
		return a.x * b.y - a.y * b.x;
	}

	private void solve() throws IOException {
		int n = nextInt();
		Vector[] p = new Vector[n + 1];
		double sq = 0.;
		for (int i = 0; i < n; ++i) {
			p[i] = new Vector(nextDouble(), nextDouble());
		}
		p[n] = p[0];
		for (int i = 0; i < n; ++i) {
			sq += vMul(p[i], p[i + 1]);
		}
		if (sq < 0) {
			Vector[] pp = new Vector[n];
			for (int i = 0; i < n; ++i) {
				pp[i] = p[n - i - 1];
			}
			p = pp;
		}
		{
			Vector[] pp = new Vector[3 * n + 1];
			for (int i = 0; i < pp.length; ++i) {
				pp[i] = p[i % n];
			}
			p = pp;
		}
		int l = 0;
		for (int i = 0; i < n; ++i) {
			if (cmp(p[i].x, p[l].x) < 0 || cmp(p[i].x, p[l].x) == 0 && cmp(p[i].y, p[l].y) < 0) {
				l = i;
			}
		}
		int r = l;
		double sum = 0.;
		while (cmp(p[r + 1].y, p[r].y) < 0) {
			sum += vMul(p[r], p[r + 1]);
			++r;
		}
		double curAlpha = 0.;
		double ans = Double.POSITIVE_INFINITY;
		while (r < p.length - 1) {
			if (l > r) {
				throw new AssertionError();
			}
			double alphal = p[l + 1].sub(p[l]).phi() + Math.PI / 2.;
			double alphar = p[r + 1].sub(p[r]).phi();
			while (cmp(alphal, curAlpha) < 0) {
				alphal += 2. * Math.PI;
			}
			while (cmp(alphar, curAlpha) < 0) {
				alphar += 2. * Math.PI;
			}
			double nextAlpha = Math.min(alphal, alphar);
			ans = Math.min(ans, value(sum, p[l], p[r], curAlpha));
			if (cmp(alphal, alphar) < 0) {
				sum -= vMul(p[l], p[l + 1]);
				l++;
			} else {
				sum += vMul(p[r], p[r + 1]);
				r++;
			}
			curAlpha = nextAlpha;
		}
		out.println(ans / 2.);
	}

	private double value(double sum, Vector vl, Vector vr, double alpha) {
		vl = vl.rotate(alpha);
		vr = vr.rotate(alpha);
		double res = -sum - ((vr.x - vl.x) * vr.y + (vl.y - vr.y) * vl.x);
		if (cmp(res, 0.) < 0) {
			throw new AssertionError();
		}
		return res;
	}

	static int cmp(double a, double b) {
		final double EPS = 1e-8;
		if (Math.abs(a - b) < EPS) {
			return 0;
		}
		return Double.compare(a, b);
	}

	public void run() {
		try {
			in = new BufferedReader(new InputStreamReader(System.in));
			out = new PrintWriter(System.out);
			eat("");
			
			solve();
			
			in.close();
			out.close();
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(-1);
		}
	}

	private void eat(String line) {
		st = new StringTokenizer(line);
	}
	
	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) {
		new Thread(new Solution()).start();
	}

}