#include <bits/stdc++.h>
using namespace std;
int n;
pair<long double, long double> p[1010];
double distToLine(long double A, long double B, long double C, long double x0,
                  long double y0) {
  double tmp = abs(A * x0 + B * y0 + C);
  double tmp2 = sqrt(A * A + B * B);
  return tmp / tmp2;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> p[i].first >> p[i].second;
  long double ans = 1e18;
  for (int i = 0; i < n; i++) {
    pair<long double, long double> prev, next;
    if (i == 0) {
      prev = p[n - 1];
      next = p[1];
    } else if (i == n - 1) {
      prev = p[n - 2];
      next = p[0];
    } else {
      prev = p[i - 1];
      next = p[i + 1];
    }
    long double A = next.second - prev.second;
    long double B = prev.first - next.first;
    long double C = prev.second * next.first - next.second * prev.first;
    long double dist = distToLine(A, B, C, p[i].first, p[i].second);
    ans = min(ans, dist / 2);
  }
  cout << fixed << setprecision(12) << ans << endl;
  return 0;
}
