Problem: You are given a convex polygon P with n distinct vertices p1, p2, ..., pn. Vertex pi has coordinates (xi, yi) in the 2D plane. These vertices are listed in clockwise order.

You can choose a real number D and move each vertex of the polygon a distance of at most D from their original positions.

Find the maximum value of D such that no matter how you move the vertices, the polygon does not intersect itself and stays convex.

Input

The first line has one integer n (4 ≤ n ≤ 1 000) — the number of vertices.

The next n lines contain the coordinates of the vertices. Line i contains two integers xi and yi ( - 109 ≤ xi, yi ≤ 109) — the coordinates of the i-th vertex. These points are guaranteed to be given in clockwise order, and will form a strictly convex polygon (in particular, no three consecutive points lie on the same straight line).

Output

Print one real number D, which is the maximum real number such that no matter how you move the vertices, the polygon stays convex.

Your answer will be considered correct if its absolute or relative error does not exceed 10 - 6.

Namely, let's assume that your answer is a and the answer of the jury is b. The checker program will consider your answer correct if <image>.

Examples

Input

4
0 0
0 1
1 1
1 0


Output

0.3535533906


Input

6
5 0
10 0
12 -4
10 -8
5 -8
3 -4


Output

1.0000000000

Note

Here is a picture of the first sample

<image>

Here is an example of making the polygon non-convex.

<image>

This is not an optimal solution, since the maximum distance we moved one point is  ≈ 0.4242640687, whereas we can make it non-convex by only moving each point a distance of at most  ≈ 0.3535533906.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = double;
struct Point {
  ld x, y;
  Point() {}
  Point(ld x, ld y) : x(x), y(y) {}
  Point operator+(const Point &other) const {
    return Point(x + other.x, y + other.y);
  }
  Point operator-() const { return Point(-x, -y); }
  Point operator-(const Point &other) const { return *this + (-other); }
  Point operator/(ld k) const { return Point(x / k, y / k); }
  ld operator*(const Point &other) const { return x * other.x + y * other.y; }
  ld operator^(const Point &other) const { return x * other.y - y * other.x; }
  ld sq_len() const { return *this * *this; }
  ld len() const { return sqrt(sq_len()); }
  ld dist(const Point &A) const { return (*this - A).len(); }
  ld dist(const Point &A, const Point &B) const {
    return fabs((*this - A) ^ (*this - B)) / (B - A).len();
  }
  bool cw(const Point &A, const Point &B) const {
    return ((*this - B) ^ (B - A)) > 0;
  }
  Point norm(ld nl) const {
    ld l = len();
    return Point(nl * x / l, nl * y / l);
  }
  Point rot() const { return Point(-y, x); }
  void print() const {}
};
bool check_line_circle(const Point &A, const Point &B, const Point &C, ld r) {
  if (C.dist(A, B) < r) {
    return false;
  }
  return C.cw(A, B);
}
bool check_three_circles(const Point &A, const Point &B, const Point &C,
                         const Point &M, const Point &H, const Point &D,
                         const Point &H1, ld r) {
  if (A.dist(B) < 2.0 * r || B.dist(C) < 2.0 * r || C.dist(A) < 2.0 * r) {
    return false;
  }
  if (!check_line_circle(A - H, B - H, C, r)) return false;
  if (!check_line_circle(A + H1 + D, M, C, r)) {
    return false;
  }
  if (!check_line_circle(A - H1 + D, M, C, r)) {
    return false;
  }
  return true;
}
int main() {
  vector<Point> points;
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    int x, y;
    scanf("%d%d", &x, &y);
    points.emplace_back(x, y);
  }
  points.push_back(points[0]);
  points.push_back(points[1]);
  ld l = 0, r = (points[1] - points[0]).len();
  for (int j = 0; j < n; ++j) {
    for (int k = 0; k < n; ++k) {
      if (k == j) continue;
      r = min(r, (points[k] - points[j]).len());
    }
  }
  r /= 2;
  for (int i = 0; i < 25; ++i) {
    ld m;
    if (l < 1 && r > 1) {
      m = 1;
    } else if (l < 1) {
      m = (l + r) / 2;
    } else {
      m = sqrt(l * r);
    }
    bool t = true;
    for (int j = 0; j < n; ++j) {
      Point M, H, D, H1;
      Point A, B;
      A = points[j];
      B = points[j + 1];
      M = (A + B) / 2;
      H = (B - A).norm(m);
      ld d = m * m / (M - A).len();
      ld h = sqrt(m * m - d * d);
      D = (B - A).norm(d);
      H1 = (B - A).rot().norm(h);
      for (int k = 0; k < n; ++k) {
        if (k == j || k == j + 1 || k == j - n || k == j - n + 1) {
          continue;
        }
        if (!check_three_circles(A, B, points[k], M, H, D, H1, m)) {
          t = false;
          break;
        }
      }
    }
    if (t) {
      l = m;
    } else {
      r = m;
    }
  }
  printf("%.10lf", r);
}