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;

using ld=long double;
using P=complex<ld>;
using Poly=vector<P>;
const ld EPS=1e-9;
struct Line{
    P x,y;
};
ld cross(P x,P y){
    return real(x)*imag(y)-real(y)*imag(x);
}
P is_ll(Line s,Line t){
    return s.x+(s.y-s.x)*cross(t.x-s.x,t.y-s.x)/(cross(t.x-s.x,s.y-s.x)+cross(s.y-s.x,t.y-s.x));
}
enum{CCW,CW,ABC,ACB,BAC};
int ccw(P a,P b,P c){
    if(cross(a-b,c-b)>EPS) return CW;
    else return CCW;
}
vector<Line> shrink(Poly poly,ld len){
    int n=poly.size();
    vector<Line> res(n);
    for(int i=0;i<n;i++){
        Line org={poly[i],poly[(i+1)%n]};
        P vec=(org.y-org.x)*P(0,1);
        vec*=len/abs(vec);
        res[i]={org.x+vec,org.y+vec};
    }
    return res;
}

const int LOOP=50;
ld solve(int n){
    Poly poly(n);
    for(int i=0;i<n;i++){
        ld x,y;
        cin>>x>>y;
        poly[i]={x,y};
    }
    ld lb=0;
    ld ub=1e5;
    for(int _t=0;_t<LOOP;_t++){
        ld mid=(lb+ub)/2;
        vector<Line> sl=shrink(poly,mid);
        vector<P> pv;
        for(int i=0;i<n;i++){
            for(int j=i+1;j<n;j++){
                Line s=sl[i];
                Line t=sl[j];
                if(abs(cross(s.x-s.y,t.x-t.y))>EPS){
                    pv.push_back(is_ll(s,t));
                }
            }
        }
        bool isok=true;
        for(auto p:pv){
            isok=true;
            for(int i=0;i<n;i++){
                int flag=ccw(sl[i].x,sl[i].y,p);
                if(flag==CW){
                    isok=false; break;
                }
            }    
            if(isok){
                break;
            }
        }
        if(isok) lb=mid;
        else ub=mid;
    }
    return lb;
} 
int main(){
    int n;
    while(cin>>n,n){
        cout<<setprecision(10)<<fixed;
        cout<<solve(n)<<endl;
    }
    return 0;
}