#include <bits/stdc++.h>
using namespace std;
struct point {
  double x, y;
} p[1005];
double length(point a, point b) {
  double x = a.x - b.x;
  double y = a.y - b.y;
  return sqrt(x * x + y * y);
}
double dis(point a, point b, point c) {
  return abs((b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x));
}
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> p[i].x >> p[i].y;
  }
  int j, k;
  double ans = 1e15;
  for (int i = 1; i <= n; i++) {
    j = i - 1;
    k = i + 1;
    if (i == 1) j = n;
    if (k == n + 1) k = 1;
    double res = dis(p[j], p[i], p[k]);
    double l = length(p[j], p[k]);
    ans = min(ans, res / l);
  }
  printf("%.10lf\n", ans / 2.0);
}
