#include <bits/stdc++.h>
using namespace std;
double dist(double x0, double y0, double x1, double y1, double x2, double y2) {
  return abs((y2 - y1) * x0 - (x2 - x1) * y0 + x2 * y1 - y2 * x1) /
         sqrt((y2 - y1) * (y2 - y1) + (x2 - x1) * (x2 - x1));
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  vector<double> a(n), b(n);
  for (int i = 0; i < n; ++i) cin >> a[i] >> b[i];
  a.push_back(a[0]);
  a.push_back(a[1]);
  b.push_back(b[0]);
  b.push_back(b[1]);
  double ans = 1e300;
  for (int i = 0; i < n; ++i) {
    ans = min(ans, dist(a[i + 1], b[i + 1], a[i], b[i], a[i + 2], b[i + 2]));
  }
  cout.setf(ios::fixed | ios::showpoint);
  cout.precision(9);
  cout << ans / 2;
  cout << endl;
  return 0;
}
