#include <bits/stdc++.h>
using namespace std;
struct pt {
  double x, y;
};
pt a[1005];
long long n;
double kv(double g) { return g * g; }
double dist(pt a, pt b) { return sqrt(kv(a.x - b.x) + kv(a.y - b.y)); }
double visina(pt a, pt b, pt c) {
  return abs((b.y - a.y) * c.x - (b.x - a.x) * c.y + b.x * a.y - b.y * a.x) /
         (dist(a, b));
}
int main() {
  cout.precision(15);
  cout << fixed;
  cin >> n;
  for (long i = 0; i < n; i++) {
    cin >> a[i].x >> a[i].y;
  }
  double d = 1e17;
  for (long i = 0; i < n; i++) {
    pt x = a[i], y = a[(i + 1) % n], z = a[(i + 2) % n];
    d = min(d, visina(x, y, z));
    d = min(d, visina(y, z, x));
    d = min(d, visina(z, x, y));
  }
  cout << d / 2 << endl;
}
