#include <bits/stdc++.h>
using namespace std;
class vec2 {
 public:
  double x = 0;
  double y = 0;
  vec2(){};
  vec2(double xx, double yy) {
    x = xx;
    y = yy;
  }
  double dot(vec2 o) const { return x * o.x + y * o.y; }
  vec2 operator+(vec2 o) const { return vec2(x + o.x, y + o.y); }
  vec2 operator-(vec2 o) const { return vec2(x - o.x, y - o.y); }
  vec2 operator*(double t) const { return vec2(x * t, y * t); }
  friend double abs(vec2);
};
double abs(vec2 v) { return sqrt(v.x * v.x + v.y * v.y); }
int main() {
  cin.tie(NULL);
  ios_base::sync_with_stdio(false);
  int n;
  vec2 a, b, c;
  vec2 p1, p2;
  cin >> n;
  cin >> a.x >> a.y >> b.x >> b.y;
  p1 = a, p2 = b;
  double res = 5 * 1e10;
  for (int i = 0; i < n - 2; ++i) {
    cin >> c.x >> c.y;
    vec2 d = b - a;
    vec2 e = c - a;
    double l = abs(d - (e * ((e).dot(d) / e.dot(e))));
    res = min(res, l / 2.0);
    a = b;
    b = c;
  }
  c = p1;
  vec2 d = b - a;
  vec2 e = c - a;
  double l = abs(d - (e * ((e).dot(d) / e.dot(e))));
  res = min(res, l / 2.0);
  a = b;
  b = c;
  c = p2;
  d = b - a;
  e = c - a;
  l = abs(d - (e * ((e).dot(d) / e.dot(e))));
  res = min(res, l / 2.0);
  cout << setprecision(10) << res;
  return 0;
}
