#include <bits/stdc++.h>
using namespace std;
struct point {
  long double x, y;
};
int n;
point p[1024];
long double ans = 2e9;
long double dist(point a, point b) {
  long double d = sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
  return d;
}
long double dist_a(point M, point N, point X) {
  long double a = dist(M, N), b = dist(M, X), c = dist(N, X);
  long double p = (a + b + c) / 2.0;
  long double area = sqrt(p * (p - a) * (p - b) * (p - c) * 1.0);
  long double h = 2.0 * area / a * 1.0;
  return h;
}
int na[1024][2];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> p[i].x >> p[i].y;
  }
  for (int i = 0; i < n; i++) {
    ans = min(ans, dist_a(p[i], p[(i + 2) % n], p[(i + 1) % n]));
  }
  ans = ans / 2.0;
  printf("%.14Lf\n", ans);
  return 0;
}
