#include <bits/stdc++.h>
using namespace std;
double f(double x1, double y1, double x2, double y2) {
  return fabs(x1 * y2 - x2 * y1) / 2 / sqrt(x2 * x2 + y2 * y2);
}
int main() {
  int n;
  vector<pair<int, int> > x;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int _x, _y;
    cin >> _x >> _y;
    x.push_back({_x, _y});
  }
  x.push_back(x[0]);
  x.push_back(x[1]);
  double ans = 1e19;
  for (int i = 0; i < n; i++) {
    ans =
        min(ans, f(x[i + 1].first - x[i].first, x[i + 1].second - x[i].second,
                   x[i + 2].first - x[i].first, x[i + 2].second - x[i].second));
  }
  cout.precision(20);
  cout << ans;
  return 0;
}
