Problem: You are given a convex polygon P with n distinct vertices p1, p2, ..., pn. Vertex pi has coordinates (xi, yi) in the 2D plane. These vertices are listed in clockwise order.

You can choose a real number D and move each vertex of the polygon a distance of at most D from their original positions.

Find the maximum value of D such that no matter how you move the vertices, the polygon does not intersect itself and stays convex.

Input

The first line has one integer n (4 ≤ n ≤ 1 000) — the number of vertices.

The next n lines contain the coordinates of the vertices. Line i contains two integers xi and yi ( - 109 ≤ xi, yi ≤ 109) — the coordinates of the i-th vertex. These points are guaranteed to be given in clockwise order, and will form a strictly convex polygon (in particular, no three consecutive points lie on the same straight line).

Output

Print one real number D, which is the maximum real number such that no matter how you move the vertices, the polygon stays convex.

Your answer will be considered correct if its absolute or relative error does not exceed 10 - 6.

Namely, let's assume that your answer is a and the answer of the jury is b. The checker program will consider your answer correct if <image>.

Examples

Input

4
0 0
0 1
1 1
1 0


Output

0.3535533906


Input

6
5 0
10 0
12 -4
10 -8
5 -8
3 -4


Output

1.0000000000

Note

Here is a picture of the first sample

<image>

Here is an example of making the polygon non-convex.

<image>

This is not an optimal solution, since the maximum distance we moved one point is  ≈ 0.4242640687, whereas we can make it non-convex by only moving each point a distance of at most  ≈ 0.3535533906.

Solution (in JAVA):

Solution:
import java.util.*;
import java.io.*;

public class ProbD {
	public static void main(String[] args) {
		ProbD sol = new ProbD();
		sol.start();
	}

	StringBuffer printstr;

	public void print(Object o){ System.out.print(o); }
	public void println(Object o) { System.out.println(o); }

	public void bufp(Object o){ printstr.append(o); }
	public void bufpl(Object o){ printstr.append(o).append('\n'); }
	public void bufpl() { printstr.append('\n'); }
	public void bufp(char[] c, int offset, int len){ printstr.append(c, offset, len); }
	public void bufpl(char[] c, int offset, int len){ printstr.append(c, offset, len).append('\n'); }

	public void start(){
		submit();
	}
	
	public void submit(){
	try{
		printstr = new StringBuffer();
		Scanner scan = new Scanner(System.in);
		BufferedReader rdr = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(rdr.readLine());
		int[] x = new int[n], y = new int[n];
		for(int i=0;i<n;i++){
			String[] s = rdr.readLine().split(" ");
			x[i] = Integer.parseInt(s[0]);
			y[i] = Integer.parseInt(s[1]);
		}
		scan.close();
		
		findD(n, x, y);
		System.out.println(printstr);
		System.out.flush();
	}
	catch(Exception e){}
	}
	
	public void findD(int n, int[] x, int[] y){
		double left = (double) 0;
		double right = (double) 1;
		double middle = left;
		double error = 0.0000001;
		double relerror = error;
		double diff = (double) 1;
		
		right = right * Integer.MAX_VALUE * 10;
		while(diff>error || diff>relerror){
			middle = (left+right)/2;
			if(mustStayConvex(n, x, y, middle)){
				diff = middle - left;
				left = middle;
			}
			else{
				diff = right - middle;
				right = middle;
			}
			if(diff<0) diff = -diff;
			relerror = error * left;
			if(relerror<=0) relerror = error;
//			bufpl("middle="+middle+" diff="+diff);
		}
		bufpl(left);
	}
	
	public boolean mustStayConvex(int n, int[] x, int[] y, double D){
		for(int i=0;i<n;i++){
			int j = (i+1) % n;
			int k = (j+1) % n;
			double[] v1 = new double[2];
			double[] v2 = new double[2];
			v1[0] = (double)x[i] - x[j];
			v1[1] = (double)y[i] - y[j];
			v2[0] = (double)x[i] - x[k];
			v2[1] = (double)y[i] - y[k];
			
			double area = findArea(v1, v2);
			double base = findLength(v2);
			double height = area / base;
//			bufpl("area="+area+" base="+base+" height="+height+" D="+D);
			if(D*2>height) return false;
		}
		return true;
	}
	
	public double findArea(double[] v1, double[] v2){
		double ret = v1[0] * v2[1] - v2[0] * v1[1];
		return Math.abs(ret);
	}
	
	public double findLength(double[] v){
		double ret = v[0] * v[0] + v[1] * v[1];
		return Math.sqrt(ret);
	}
}