#include <bits/stdc++.h>
using namespace std;
const int maxn = 1005;
int n;
struct pos {
  double x, y;
};
pos v[maxn];
double calc(int u) {
  double A = v[u + 1].x - v[u - 1].x, B = v[u + 1].y - v[u - 1].y;
  double C = v[u].x - v[u - 1].x, D = v[u].y - v[u - 1].y;
  double dis = fabs(C * B - D * A) / sqrt(A * A + B * B);
  return dis / 2.0;
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) scanf("%lf%lf", &v[i].x, &v[i].y);
  v[0].x = v[n].x;
  v[0].y = v[n].y;
  v[n + 1].x = v[1].x;
  v[n + 1].y = v[1].y;
  double ans = 1e18;
  for (int i = 1; i <= n; i++) ans = min(ans, calc(i));
  printf("%.9lf\n", ans);
  return 0;
}
