#include <bits/stdc++.h>
using namespace std;
const long long int INF = 1e18;
const int inf = 1e9;
const int MOD = 1e9 + 7;
const int nax = 1000 + 10;
double x[nax], y[nax];
int main() {
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
  }
  double ans = INF;
  for (int i = 0; i < n; i++) {
    double xa = x[i], ya = y[i];
    double xb = x[(i + 1) % n], yb = y[(i + 1) % n];
    double xc = x[(i + 2) % n], yc = y[(i + 2) % n];
    double area = (xb - xa) * (yc - ya) - (xc - xa) * (yb - ya);
    double ac = sqrt((xc - xa) * (xc - xa) + (yc - ya) * (yc - ya));
    if (area < 0) area *= -1.0;
    double cur = area / (2.0 * ac);
    ans = min(ans, cur);
  }
  cout << fixed << setprecision(8) << ans << endl;
  return 0;
}
