#include <bits/stdc++.h>
using namespace std;
const long long dd = 1e6;
const long long inf = 1e9 + 7;
const double eps = 1e-8;
double sqr(double x) { return x * x; }
int main() {
  int n;
  scanf("%d", &n);
  vector<pair<double, double> > pts(n);
  for (int i = 0; i < n; ++i) {
    scanf("%lf%lf", &pts[i].first, &pts[i].second);
  }
  double ans = 1e18;
  for (int i = 0; i < n; ++i) {
    int prev = (i - 1 + n) % n;
    int next = (i + 1) % n;
    double a = pts[prev].second - pts[next].second;
    double b = pts[next].first - pts[prev].first;
    double c = -a * pts[prev].first - b * pts[prev].second;
    double z = sqrt(a * a + b * b);
    a /= z;
    b /= z;
    c /= z;
    double dist = fabs(a * pts[i].first + b * pts[i].second + c);
    ans = min(ans, dist / 2);
    ans = min(ans, sqrt(sqr(pts[i].first - pts[next].first) +
                        sqr(pts[i].second - pts[next].second)));
  }
  printf("%.10lf\n", ans);
}
