Problem: The main land of Japan called Honshu is an island surrounded by the sea. In such an island, it is natural to ask a question: "Where is the most distant point from the sea?" The answer to this question for Honshu was found in 1996. The most distant point is located in former Usuda Town, Nagano Prefecture, whose distance from the sea is 114.86 km.

In this problem, you are asked to write a program which, given a map of an island, finds the most distant point from the sea in the island, and reports its distance from the sea. In order to simplify the problem, we only consider maps representable by convex polygons.



Input

The input consists of multiple datasets. Each dataset represents a map of an island, which is a convex polygon. The format of a dataset is as follows.


n
x1    y1
.
.
.
xn    yn


Every input item in a dataset is a non-negative integer. Two input items in a line are separated by a space.

n in the first line is the number of vertices of the polygon, satisfying 3 ≤ n ≤ 100. Subsequent n lines are the x- and y-coordinates of the n vertices. Line segments (xi, yi) - (xi+1, yi+1) (1 ≤ i ≤ n - 1) and the line segment (xn, yn) - (x1, y1) form the border of the polygon in counterclockwise order. That is, these line segments see the inside of the polygon in the left of their directions. All coordinate values are between 0 and 10000, inclusive.

You can assume that the polygon is simple, that is, its border never crosses or touches itself. As stated above, the given polygon is always a convex one.

The last dataset is followed by a line containing a single zero.

Output

For each dataset in the input, one line containing the distance of the most distant point from the sea should be output. An output line should not contain extra characters such as spaces.

The answer should not have an error greater than 0.00001 (10-5 ). You may output any number of digits after the decimal point, provided that the above accuracy condition is satisfied.

Example

Input

4
0 0
10000 0
10000 10000
0 10000
3
0 0
10000 0
7000 1000
6
0 40
100 20
250 40
250 70
100 90
0 70
3
0 0
10000 10000
5000 5001
0


Output

5000.000000
494.233641
34.542948
0.353553

Solution (in CPP):

Solution:
#include <cstdio>
#include <iostream>
#include <cmath>
#include <complex>
#include <algorithm>
#include <cfloat>
using namespace std;

const double EPS = 1e-6;

typedef complex<double> P;

double cross(P va, P vb){
	return real(va) * imag(vb) - imag(va) * real(vb);
}

double distanceLP(P a, P b, P c){
	return abs(cross(b - a, c - a)) / abs(b - a);
}

P crosspoint(P pa1, P pa2, P pb1, P pb2){
	P da12 = pa2 - pa1;
	P db21 = pb1 - pb2;
	P dab1 = pb1 - pa1;
	double d = cross(da12, db21);
	if(abs(d) > EPS){
		double t = cross(dab1, db21) / d;
		return pa1 + t * da12;
	}
	return P(DBL_MAX, DBL_MAX);
}

int main(){
	int n;
	P pts[110];
	double x, y;
	while(scanf("%d", &n), n){
		for(int i = 0; i < n; ++i){
			scanf("%lf%lf", &x, &y);
			pts[i] = P(x, y);
		}
		pts[n] = pts[0];
		
		double ans = 0.0;
		for(int i = 0; i < n; ++i)
		for(int j = i + 1; j < n; ++j)
		for(int k = j + 1; k < n; ++k){
			int e0 = i, e1 = j, e2 = k;

			if(abs(cross(pts[i + 1] - pts[i], pts[j + 1] - pts[j])) < EPS){
				e0 = j;
				e1 = k;
				e2 = i;
			}
			else if(abs(cross(pts[j + 1] - pts[j], pts[k + 1] - pts[k])) < EPS){
				e0 = k;
				e1 = i;
				e2 = j;
			}

			P tmp[4];
			tmp[0] = pts[e0];
			tmp[1] = crosspoint(pts[e0], pts[e0 + 1], pts[e1], pts[e1 + 1]);
			tmp[2] = crosspoint(pts[e1], pts[e1 + 1], pts[e2], pts[e2 + 1]);
			tmp[3] = pts[e2 + 1];
			double a1 = 0.5 * (arg(tmp[2] - tmp[1]) + arg(tmp[0] - tmp[1]));
			double a2 = 0.5 * (arg(tmp[3] - tmp[2]) + arg(tmp[1] - tmp[2]));
			P c = crosspoint(tmp[1], tmp[1] + polar(1.0, a1), tmp[2], tmp[2] + polar(1.0, a2));
			if(real(c) == DBL_MAX){ continue; }
			double d = distanceLP(pts[j], pts[j + 1], c);
			if(d <= ans){ continue; }
			bool ok = true;
			for(int h = 0; h < n && ok; ++h){
				if(distanceLP(pts[h], pts[h + 1], c) < d - EPS){
					ok = false;
				}
				if(cross(pts[h + 1] - pts[h], c - pts[h]) < -EPS){
					ok = false;
				}
			}
			if(ok){
				ans = d;
			}
		}
		printf("%.9f\n", ans);
	}
}