#include <bits/stdc++.h>
using namespace std;
pair<double, double> p[1010];
int n;
double cal(int i) {
  double a = p[i + 1].first - p[i - 1].first,
         b = p[i + 1].second - p[i - 1].second;
  double c = p[i].first - p[i - 1].first, d = p[i].second - p[i - 1].second;
  double dist = fabs(b * c - a * d) / sqrt(a * a + b * b);
  return dist / 2.0;
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> p[i].first >> p[i].second;
  p[0] = p[n];
  p[n + 1] = p[1];
  double ans = 1e18;
  for (int i = 1; i <= n; i++) ans = min(ans, cal(i));
  cout << fixed << setprecision(10) << ans << '\n';
}
