#include <bits/stdc++.h>
using namespace std;
struct point {
  double x, y;
} p[1050];
int n;
double dis(point a, point b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
double area(point a, point b, point c) {
  double A = dis(a, b);
  double B = dis(b, c);
  double C = dis(c, a);
  double p = (A + B + C) / 2;
  return sqrt(p * (p - A) * (p - B) * (p - C));
}
double height(point a, point b, point c) {
  double Area = area(a, b, c);
  double d = dis(b, c);
  return 2 * Area / d;
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> p[i].x >> p[i].y;
  double Min = 1e18;
  for (int i = 0; i < n; i++) {
    point a = p[i];
    point b = p[(i + 1) % n];
    point c = p[(i - 1 + n) % n];
    Min = min(Min, height(a, b, c));
  }
  printf("%.10f\n", Min / 2);
  return 0;
}
