#include <bits/stdc++.h>
using namespace std;
class vec {
 public:
  int x, y;
  vec() {}
  vec(int tx, int ty) { x = tx, y = ty; }
  vec operator-(const vec &t) { return vec(x - t.x, y - t.y); }
  long long operator*(const vec &t) { return 1ll * x * t.y - 1ll * y * t.x; }
  double len() { return sqrt(1ll * x * x + 1ll * y * y); }
} v[1010];
int n;
double ans = 1e18;
double distoline(vec a, vec b, vec c) {
  vec ta = b - a, tb = c - a;
  return (ta * tb) / ta.len();
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d%d", &v[i].x, &v[i].y);
  for (int i = 0; i < n; i++) {
    int l = (i - 1 + n) % n, r = (i + 1) % n;
    ans = min(ans, distoline(v[l], v[r], v[i]) / 2);
  }
  printf("%.8lf\n", ans);
  return 0;
}
