#include <bits/stdc++.h>
const long long LINF = 1e15;
using namespace std;
vector<pair<double, double> > v;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a, b;
    cin >> a >> b;
    v.push_back(make_pair(a, b));
  }
  double ans = LINF + .0;
  for (int i = 0; i < n; i++) {
    double x0 = v[i].first;
    double y0 = v[i].second;
    double x1 = v[(i - 1 + n) % n].first;
    double y1 = v[(i - 1 + n) % n].second;
    double x2 = v[(i + 1) % n].first;
    double y2 = v[(i + 1) % n].second;
    ans = min(
        ans, fabs(((x1 - x0) * (y2 - y0) - (x2 - x0) * (y1 - y0)) /
                  (2.0 * sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)))));
  }
  cout << fixed << setprecision(6) << ans << endl;
  return 0;
}
