#include <bits/stdc++.h>
using namespace std;
double disBetweenPointAndLine(double x0, double y0, double x1, double y1,
                              double x2, double y2) {
  double a = y1 - y2;
  double b = x2 - x1;
  double c = x1 * y2 - x2 * y1;
  double d = (a * x0 + b * y0 + c) / sqrt(a * a + b * b);
  return fabs(d);
}
int main() {
  int n;
  while (cin >> n) {
    double ans = 1e30;
    double x00, y00, x11, y11;
    double x0, x1, x2, y0, y1, y2;
    scanf("%lf%lf%lf%lf", &x0, &y0, &x1, &y1);
    x00 = x0;
    y00 = y0;
    x11 = x1;
    y11 = y1;
    for (int i = 2; i < n; i++) {
      scanf("%lf%lf", &x2, &y2);
      ans = min(ans, disBetweenPointAndLine(x1, y1, x0, y0, x2, y2) / 2);
      x0 = x1;
      x1 = x2;
      y0 = y1;
      y1 = y2;
    }
    ans = min(ans, disBetweenPointAndLine(x1, y1, x0, y0, x00, y00) / 2);
    ans = min(ans, disBetweenPointAndLine(x00, y00, x1, y1, x11, y11) / 2);
    printf("%.8lf\n", ans);
  }
  return 0;
}
