#include <bits/stdc++.h>
using namespace std;
double dist(pair<double, double> a, pair<double, double> b) {
  return sqrt((a.first - b.first) * (a.first - b.first) +
              (a.second - b.second) * (a.second - b.second));
}
int32_t main() {
  int64_t n;
  cin >> n;
  vector<pair<double, double> > p(n);
  for (int64_t i = 0; i < n; ++i) {
    cin >> p[i].first >> p[i].second;
  }
  double D = 1e18;
  for (int64_t i = 0; i < n; ++i) {
    for (int64_t j = i + 1; j < n; ++j) {
      D = min(D, dist(p[i], p[j]) * 0.5);
    }
  }
  for (int64_t i = 0; i < n; ++i) {
    pair<double, double> x1 = p[i], x2 = p[(i + 1) % n], x3 = p[(i + 2) % n];
    double A = x1.second - x3.second;
    double B = -x1.first + x3.first;
    double C =
        (x3.second - x1.second) * x1.first - (x3.first - x1.first) * x1.second;
    double d = fabs(A * x2.first + B * x2.second + C) / sqrt(A * A + B * B);
    D = min(D, d * 0.5);
  }
  printf("%.7lf", D);
}
