#include <bits/stdc++.h>
using namespace std;
double arrx[2000], arry[2000], dis[2000];
int main() {
  int i, n;
  cin >> n;
  for (i = 0; i < n; i++) scanf("%lf%lf", &arrx[i], &arry[i]);
  double x1, x2, y1, y2, ans = -1.000;
  for (i = 0; i < n; i++) {
    int pre = (i - 1 + n) % n, nex = (i + 1) % n;
    x1 = arrx[pre];
    y1 = arry[pre];
    x2 = arrx[nex];
    y2 = arry[nex];
    dis[i] = (y2 - y1) * arrx[i] - arry[i] * (x2 - x1) +
             (y1 * (x2 - x1) - (y2 - y1) * x1);
    dis[i] = abs(dis[i]) / sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
    if (ans < 0.0)
      ans = (dis[i]) / 2;
    else
      ans = min(ans, (dis[i]) / 2);
  }
  printf("%.6lf", ans);
  return 0;
}
