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>
#define REP(i, a, n) for (ll i = ((ll) a); i < ((ll) n); i++)
using namespace std;
typedef long long ll;

class Vector2 {
public:
  double x, y;

  Vector2(): x(0), y(0) {}
  Vector2(double x, double y): x(x), y(y) {}

  Vector2 operator+(Vector2 p) { return Vector2(x + p.x, y + p.y); }
  Vector2 operator-(Vector2 p) { return Vector2(x - p.x, y - p.y); }
  Vector2 operator*(double t) { return Vector2(x * t, y * t); }
  Vector2 operator/(double t) { return Vector2(x / t, y / t); }
  double dot(Vector2 p) { return x * p.x + y * p.y; }
  double det(Vector2 p) { return x * p.y - y * p.x; }
  double norm2() { return x * x + y * y; }
  double norm() { return sqrt(norm2()); }
  Vector2 normalize() { return Vector2(x / norm(), y / norm()); }
};
using Point2 = Vector2;

class LineSegment2 {
public:
  Point2 p1, p2;

  LineSegment2() {}
  LineSegment2(Point2 p1, Point2 p2): p1(p1), p2(p2) {}
};

using Polygon2 = vector<Vector2>;

Point2 lines_intersect_point(Point2 a, Point2 b, Point2 c, Point2 d) {
  Vector2 u = b - a;
  Vector2 v = d - c;
  double p1 = u.y, q1 = -u.x, r1 = -u.det(a);
  double p2 = v.y, q2 = -v.x, r2 = -v.det(c);
  double det = p1 * q2 - p2 * q1;
  double x = (r1 * q2 - r2 * q1) / det;
  double y = (r2 * p1 - r1 * p2) / det;
  return Point2(x, y);
}

LineSegment2 slide(LineSegment2 l, double d) {
  Vector2 v = (l.p2 - l.p1).normalize();
  Vector2 n = Vector2(-v.y, v.x);
  Vector2 m = (l.p1 + l.p2) / 2;
  Vector2 p1 = m + n * d;
  Vector2 p2 = p1 + v;
  return LineSegment2(p1, p2);
}

Polygon2 cut(Polygon2 &P, LineSegment2 l) {
  Polygon2 poly;
  REP(i, 0, P.size()) {
    Point2 p1 = P[i], p2 = P[(i + 1) % P.size()];
    if ((l.p2 - l.p1).det(p1 - l.p1) >= 0) {
      poly.push_back(p1);
    }
    if ((l.p2 - l.p1).det(p1 - l.p1) * (l.p2 - l.p1).det(p2 - l.p1) < 0) {
      poly.push_back(lines_intersect_point(l.p1, l.p2, p1, p2));
    }
  }
  return poly;
}

bool ok(Polygon2 &P, double d) {
  Polygon2 poly(P);
  REP(i, 0, P.size()) {
    Vector2 p1 = P[i], p2 = P[(i + 1) % P.size()];
    LineSegment2 l = slide(LineSegment2(p1, p2), d);
    poly = cut(poly, l);
  }
  return poly.size() > 0;
}

double solve(Polygon2 P) {
  double l = 0, h = 1e10;
  REP(i, 0, 100) {
    double m = (l + h) / 2;
    if (ok(P, m)) l = m;
    else h = m;
  }
  return l;
}

int main(void) {
  for (ll N; cin >> N, N;) {
    Polygon2 P(N);
    REP(i, 0, N) cin >> P[i].x >> P[i].y;
    printf("%.15lf\n", solve(P));
  }
}