#include <bits/stdc++.h>
using namespace std;
int n;
vector<complex<double> > p;
double cross(complex<double> a, complex<double> b) {
  return (conj(a) * b).imag();
}
double length1(complex<double> a) { return hypot(a.real(), a.imag()); }
double dist(complex<double> a, complex<double> b) { return length1(b - a); }
double dist_to_line(complex<double> a, complex<double> b, complex<double> c) {
  double d = cross(b - a, c - a) / dist(a, b);
  return fabs(d);
}
int main() {
  ios::sync_with_stdio(false), cin.tie(0);
  cin >> n;
  double x, y;
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    complex<double> a;
    a.real(x);
    a.imag(y);
    p.push_back(a);
  }
  p.insert(p.begin(), p[n - 1]);
  p.push_back(p[1]);
  double ans = 1e20;
  for (int i = 1; i <= n; i++)
    ans = min(ans, dist_to_line(p[i - 1], p[i + 1], p[i]) * 0.5);
  cout << fixed << setprecision(6) << ans;
  return 0;
}
