#include <bits/stdc++.h>
using namespace std;
const int inf = 0x7fffffff;
const double eps = 1e-6;
const int maxn = 1e5 + 100;
struct point {
  double x, y;
  point() {}
  point(double _x, double _y) {
    x = _x;
    y = _y;
  }
} a[maxn];
double x_mul(point p0, point p1, point p2) {
  return (p1.x - p0.x) * (p2.y - p0.y) - (p2.x - p0.x) * (p1.y - p0.y);
}
double dis(point p1, point p2) {
  return sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
}
int main(void) {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%lf %lf", &a[i].x, &a[i].y);
  double ans = inf;
  for (int i = 0; i < n; i++) {
    double area = fabs(x_mul(a[(i + 1) % n], a[i], a[(i + 2) % n])) / 2.0;
    double d = dis(a[i], a[(i + 2) % n]);
    ans = min(ans, area / d);
  }
  printf("%.6f\n", ans);
  return 0;
}
