#include <bits/stdc++.h>
using namespace std;
double cross(complex<double> a, complex<double> b) {
  return (a.real() * b.imag() - a.imag() * b.real());
}
double distance_l_p(complex<double> a, complex<double> b, complex<double> c) {
  return abs(cross(b - a, c - a)) / abs(b - a);
}
const int MAXN = 1024;
int n;
double x[MAXN], y[MAXN];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 0; i < (int)(n); i++) cin >> x[i] >> y[i];
  double ret = 1e30;
  for (int i = 0; i < (int)(n); i++) {
    int j = (i + 1) % n;
    int k = (i - 1 + n) % n;
    complex<double> a(x[j], y[j]);
    complex<double> b(x[k], y[k]);
    complex<double> c(x[i], y[i]);
    ret = min(ret, distance_l_p(a, b, c) / 2);
  }
  cout << fixed << setprecision(15) << ret << endl;
  return 0;
}
