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 REP(i, s, e) for(int i = (int)(s); i < (int)(e); ++i) 
#define rep(i, n) REP(i, 0, n)

#define X real()
#define Y imag()
#define curr(P, i) P[(i)%(P).size()]
#define next(P, i) curr(P, i+1)
#define prev(P, i) curr(P, (i)-1+(P.size()))

using D = double;
using P = complex<D>;
using G = vector<P>;
const D EPS = 1e-8;
namespace std {
    bool operator <(const P& a, const P& b) {
        return a.X != b.X ? a.X < b.X : a.Y < b.Y;
    }
}
D dot(const P& a, const P& b) {
    return (conj(a)*b).X;
}
D cross(const P& a, const P& b) {
    return (conj(a)*b).Y;
}
int ccw(P a, P b, P c) {
    b -= a; c -= a;
    if (cross(b, c) > 0)   return +1;       // counter clockwise
    if (cross(b, c) < 0)   return -1;       // clockwise
    if (dot(b, c) < 0)     return +2;       // c--a--b on line
    if (norm(b) < norm(c)) return -2;       // a--b--c on line
    return 0;
}
struct L : public vector<P> {
    L(const P &a, const P &b) {
        push_back(a); push_back(b);
    }
};
P crossPoint(const L& l, const L& m) {
    D A = cross(l[1] - l[0], m[1] - m[0]);
    D B = cross(l[1] - l[0], l[1] - m[0]);
    if(abs(A) < EPS && abs(B) < EPS) return m[0];
    if(abs(A) < EPS) assert(false);
    return m[0] + B / A *(m[1] - m[0]);
}
G convexCut(const G& P, const L& l) {
    G Q;
    rep(i, P.size()) {
        auto A = curr(P, i);
        auto B = next(P, i);
        if(ccw(l[0], l[1], A) != -1) Q.push_back(A);
        if(ccw(l[0], l[1], A) * ccw(l[0], l[1], B) < 0) Q.push_back(crossPoint(L(A, B), l));
    }
    return Q;
}



int main() {
    int n;
    while(cin >> n) {
        if(n == 0) break;
        G ps;
        rep(i, n) {
            D x, y;
            cin >> x >> y;
            ps.push_back({x, y});
        }
        {
            D l = (D)0.0, r = (D)2e4;
            auto moveL = [&](D m, const L& l) {
                auto v = l[1]-l[0];
                v *= P{0, 1};
                v /= (D)abs(v);
                v *= (m);
                return L{l[0]+v, l[1]+v};
            };
            auto check = [&](D m) {
                auto g = ps;
                rep(i, n) {
                    L l = {curr(ps, i), next(ps, i)};
                    g = convexCut(g, moveL(m, l));
                    if(g.empty()) return false;
                }
                return true;
            };
            rep(i, 1024) {
                D m = (l+r)/2.0;
                if(check(m)) l = m;
                else r = m;
            }
            printf("%.15lf\n", l);
        }
    }
    return 0;
}