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 <bits/stdc++.h>
using namespace std;

#define LE(n,m) ((n) < (m) + EPS * (abs(n) + abs(m)))
#define GE(n,m) ((n) + EPS * (abs(n) + abs(m)) > (m))
#define LT(n,m) ((n) + EPS * (abs(n) + abs(m)) < (m))
#define GT(n,m) ((n) > (m) + EPS * (abs(n) + abs(m)))
#define EQ(n,m) (abs((n)-(m)) < EPS * (abs(n) + abs(m)))
const double EPS = 1e-9;

typedef complex<double> P;
#define X real()
#define Y imag()
typedef pair<P, P> L;

vector<P> poly;

int N;

double dot(P a, P b) {
    return (conj(a)*b).X;
}
double cross(P a, P b) {
    return (conj(a)*b).Y;
}
double distLP(P a1, P a2, P p) {
    return abs(cross(a2-a1,p-a1))/abs(a2-a1);
}
int ccw(P a, P b, P c) {
    b -= a;	c -= a;
    //3???????????´???????????????
    if (cross(b,c) > EPS) return +1;	// counter clockwise
    if (cross(b,c) < -EPS) return -1;	// clockwise
    //3???????????´???????????????
    if (dot(b,c) < -EPS) return +2;		// c--a--b on line
    if (norm(b) < norm(c)) return -2;	// a--b--c on line or a==b
    return 0;							// a--c--b on line or a==c or b==c
}
bool isecSS(P a1, P a2, P b1, P b2) {
    return ccw(a1, a2, b1)*ccw(a1, a2, b2) <= 0 &&
    ccw(b1, b2, a1)*ccw(b1, b2, a2) <= 0;
}
P crosspointLL(P a1, P a2, P b1, P b2) {
    double d1 = cross(b2-b1, b1-a1);
    double d2 = cross(b2-b1, a2-a1);
    if (EQ(d1, 0) && EQ(d2, 0)) return a1;	// same line
    return a1 + d1 / d2 * (a2-a1);
}

bool ok(double l){
    vector<L> lines(N);
    for(int i=0; i<N; i++){
        auto p1 = poly[i], p2 = poly[(i+1)%N];
        auto v = (p2 - p1)/abs(p2 - p1) * P(0, 1) * l;
        auto np1 = p1 + v, np2 = p2 + v;
        lines[i] = L(np1, np2);
    }
    for(int i=0; i<N; i++){
        for(int j=i+1; j<N; j++){
            auto& a1 = lines[i].first, a2 = lines[i].second;
            auto& b1 = lines[j].first, b2 = lines[j].second;
            if(!isecSS(a1, a2, b1, b2)) continue;
            
            auto p = crosspointLL(a1, a2, b1, b2);
            bool flag = true;
            for(int k=0; k<N; k++){
                auto& p1 = poly[k], p2 = poly[(k+1)%N];
                flag &= GE(distLP(p1, p2, p), l);
            }
            if(flag)
                return true;
        }
    }
    return false;
}

void solve(){
    double lb = 0, ub = 10000;
    for(int i=0; i<100; i++){
        double m = (lb + ub)/2;
        if(ok(m))
            lb = m;
        else
            ub = m;
    }
    cout << lb << endl;
}

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.precision(16);
    cout.setf(ios::fixed);

    while(cin >> N, N){
        poly.resize(N);
        for(int i=0; i<N; i++){
            int x, y; cin >> x >> y;
            poly[i] = P(x, y);
        }
        solve();
    }
    return 0;
}