#include <bits/stdc++.h>
using namespace std;
struct Point {
  double x;
  double y;
} a[1005];
struct Line {
  Point a;
  Point b;
};
double Distance(Point p1, Point p2) {
  return sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
}
double xmult(Point p1, Point p2, Point p) {
  return (p1.x - p.x) * (p2.y - p.y) - (p2.x - p.x) * (p1.y - p.y);
}
double disptoLine(Point p, Line l) {
  return fabs(xmult(p, l.a, l.b)) / Distance(l.a, l.b);
}
int main() {
  int n;
  cin >> n;
  int i, j;
  for (i = 0; i < n; i++) {
    scanf("%lf%lf", &a[i].x, &a[i].y);
  }
  double ans = 9999999999.0;
  Line b;
  for (i = 0; i < n; i++) {
    b.a = a[(i + 1) % n];
    b.b = a[(i - 1 + n) % n];
    ans = min(ans, disptoLine(a[i], b));
  }
  printf("%.10lf\n", ans / 2);
  return 0;
}
