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 <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <map>
#include <algorithm>
#include <complex>

#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define EQ(a,b) (abs((a)-(b))<eps)

using namespace std;

typedef long double ld;
typedef complex<ld> P;
typedef vector<P> VP;
const ld eps = 1e-8, pi = acos(-1.0);

ld dot (P a, P b) { return real(conj(a) * b); }
ld cross (P a, P b) { return imag(conj(a) * b); }

namespace std {
  bool operator<(const P &lhs, const P &rhs) {
    return lhs.real() == rhs.real() ? lhs.imag() < rhs.imag() : lhs.real() < rhs.real();
  }
}

// Line
class L{
public:
  P a, b;
  L (P aa, P bb) { a = aa; b = bb; }
  L (ld ax, ld ay, ld bx, ld by) { a = P(ax, ay); b = P(bx, by); }
};

// 直線lと直線mが交点を持つか
bool isis_ll(L l, L m) {
  return abs(cross(l.b - l.a, m.b - m.a)) > eps ||
    abs(cross(l.b - l.a, m.a - l.a)) < eps;
}

// 点pから直線lに下ろした垂線の足
P proj(L l, P p) {
  ld t = dot(p - l.a, l.a - l.b) / norm(l.a - l.b);
  return l.a + t * (l.a - l.b);
}

// 直線lと点pの距離
ld dist_lp(L l, P p) {
  return abs(p - proj(l, p));
}

// 直線sと直線lの交点
VP is_ll(L s, L t){
  VP v;
  P sv = s.b - s.a, tv = t.b - t.a;
  if (abs(cross(sv,tv)) > 0)
    v.push_back(s.a + sv * cross(tv, t.a - s.a) / cross(tv, sv));
  return v;
}

// 点pが線分s上に存在するか
bool isis_sp(L s, P p) {
  return abs(s.a - p) + abs(s.b - p) - abs(s.b - s.a) < eps;
}

// 頂点から内心を求める
P ic(P a, P b, P c) {
  ld la = abs(b-c);
  ld lb = abs(c-a);
  ld lc = abs(a-b);
  return 1/(la+lb+lc)*(la*a+lb*b+lc*c);
}

// 3辺から内心を求める
P ic_l(L a,L b,L c) {
  if(!isis_ll(a,b)) {
    ld r = dist_lp(a,b.a) / 2.0;
    L m((a.a + b.a)/P(2,0),(a.a + b.b)/P(2,0));
    P ar = c.a - c.b;
    ar /= abs(ar);
    P p1 = ar * P(0,r);
    P p2 = ar * P(0,-r);
    L c1(c.a+p1, c.b+p1);
    L c2(c.a+p2, c.b+p2);
    VP cx1 = is_ll(m,c1);
    VP cx2 = is_ll(m,c2);
    P h=proj(c,cx1[0]);
    if(isis_sp(c1,h)) return cx1[0];
    return cx2[0];
  } else if (!isis_ll(b,c)) {
    return ic_l(b,c,a);
  } else if (!isis_ll(c,a)) {
    return ic_l(c,a,b);
  }
  P pa = is_ll(b,c)[0];
  P pb = is_ll(c,a)[0];
  P pc = is_ll(a,b)[0];
  return ic(pa,pb,pc);
}

int main() {
  while(1){
    int n;
    cin >> n;
    if(!n) break;
    VP vp;
    REP(i,n) {
      ld x,y;
      cin >> x >> y;
      vp.emplace_back(x,y);
    }
    ld rmax = 0.0;
    REP(i,n)REP(j,n)REP(k,n){
      if(i==j)break;
      if(i==k||j==k)continue;
      L l1(vp[i],vp[(i+1)%vp.size()]);
      L l2(vp[j],vp[(j+1)%vp.size()]);
      L l3(vp[k],vp[(k+1)%vp.size()]);
      P ip = ic_l(l1,l2,l3);
      if(!(isis_sp(l1,proj(l1,ip)) && isis_sp(l2,proj(l2,ip)) && isis_sp(l3,proj(l3,ip))))continue;
      if(dist_lp(l1, ip) < rmax) continue;
      bool valid = true;
      REP(l,n){
        L l4(vp[l], vp[(l+1)%vp.size()]);
        if(dist_lp(l4, ip) < dist_lp(l1, ip)) {
          valid = false;
          break;
        }
      }
      if(valid) rmax = dist_lp(l1,ip);
    }
    cout << fixed << setprecision(6) << rmax << endl;
  }
  return 0;
}