#include <bits/stdc++.h>
using namespace std;
long double dis(pair<long long, long long> a, pair<long long, long long> b,
                pair<long long, long long> c) {
  long double m;
  long double aa, bb, cc;
  if (c.second == a.second) {
    return ((double)abs(b.second - a.second) / 2.0);
  } else if (c.first == a.first) {
    return ((double)abs(b.first - a.first) / 2.0);
  } else {
    m = (c.second - a.second) / double(c.first - a.first);
    aa = 1;
    bb = -m;
    cc = m * (a.first) - a.second;
  }
  long double dist =
      abs(aa * b.second + bb * b.first + cc) / (sqrt(aa * aa + bb * bb));
  return dist / 2;
}
int main() {
  int n;
  cin >> n;
  vector<pair<long long, long long> > points;
  points.resize(n);
  for (int i = 0; i < n; i++) {
    cin >> points[i].first >> points[i].second;
  }
  long double minn = 1e18;
  for (int i = 0; i < n - 2; i++) {
    minn = min(minn, dis(points[i], points[i + 1], points[i + 2]));
  }
  minn = min(minn, dis(points[n - 2], points[n - 1], points[0]));
  minn = min(minn, dis(points[n - 1], points[0], points[1]));
  cout << fixed << setprecision(8) << minn << endl;
  return 0;
}
