#include <bits/stdc++.h>
using namespace std;
double x[1005], y[1005];
double func(double x1, double y1, double x2, double y2, double x3, double y3) {
  double dis = (x2 * (y1 - y3) + y2 * (x3 - x1) - x1 * y1 + x1 * y3 + y1 * x1 -
                y1 * x3) /
               sqrt((y1 - y3) * (y1 - y3) + (x3 - x1) * (x3 - x1));
  return abs(dis) / 2.;
}
int main() {
  int i, j, k;
  int n;
  double ans;
  cin >> n;
  for (i = 0; i < n; ++i) cin >> x[i] >> y[i];
  ans = 1e18;
  for (i = 0; i < n; ++i)
    ans = min(ans, func(x[i], y[i], x[(i + 1) % n], y[(i + 1) % n],
                        x[(i + 2) % n], y[(i + 2) % n]));
  cout << setprecision(7) << fixed << ans << endl;
}
