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.io.*;
import java.util.*;
public class D {
	public static void main(String[] args)throws Throwable {
		MyScanner sc=new MyScanner();
		PrintWriter pw=new PrintWriter(System.out);
		
		int n=sc.nextInt();
		Point [] a=new Point [n];
		for(int i=0;i<n;i++){
			a[i]=new Point(sc.nextDouble(), sc.nextDouble());
		}
		double ans=Double.MAX_VALUE;
		
		for(int i=0;i<n;i++){
			int v=(i-1+n)%n;
			int u=(i+1)%n;
			double d=a[i].disToLine(a[u], a[v]);
			
			ans=Math.min(ans, d);
		}
		
		pw.println(ans/2.0);
		
		pw.flush();
		pw.close();
	}
	
	static class Point {
		
		static double eps=(1e-9);
		double x,y;
		Point(double a,double b){
			x=a;
			y=b;
		}
		
		public int compareTo(Point p) {
			if(Math.abs(x-p.x)>eps)
				return x>p.x? 1 : -1;
			if(Math.abs(y-p.y)>eps)
				return y>p.y? 1 : -1;
			return 0;
		}
		
		double distance(Point p){
			return Math.sqrt((x-p.x)*(x-p.x)+(y-p.y)*(y-p.y));
		}
		
		Point translate(Vector v){
			return new Point(x+v.x,y+v.y);
		}
		
		double disToLine(Point a,Point b){
			if(a.compareTo(b)==0)
				return distance(a);
			Vector ab=new Vector(a, b);
			Vector ap=new Vector(a, this);
			double u=ap.dot(ab)/ab.norm_sq(); 
			Point c=a.translate(ab.scale(u));
			return distance(c);
		}
	}
	
	static class Vector{
		double x,y;
		Vector(double a,double b){
			x=a;
			y=b;
		}
		Vector(Point p,Point q){
			this(q.x-p.x,q.y-p.y);
		}
		
		Vector scale(double s){
			return new Vector(x*s, y*s);
		}
		
		double norm_sq(){
			return x*x+y*y;
		}
		
		double dot(Vector v){
			return x*v.x+y*v.y;
		}
		
	}
	
	static class MyScanner {
		BufferedReader br;
		StringTokenizer st;
		public MyScanner() {br = new BufferedReader(new InputStreamReader(System.in));}
		String next() {while (st == null || !st.hasMoreElements()) {
			try {st = new StringTokenizer(br.readLine());}
			catch (IOException e) {e.printStackTrace();}}
		return st.nextToken();}
		int nextInt() {return Integer.parseInt(next());}
		long nextLong() {return Long.parseLong(next());}
		double nextDouble() {return Double.parseDouble(next());}
		String nextLine(){String str = "";
		try {str = br.readLine();}
		catch (IOException e) {e.printStackTrace();}
		return str;}
	}
}