#include <bits/stdc++.h>
using namespace std;
int n;
double a[1111][2], ans = 1e+18;
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> a[i][0] >> a[i][1];
  a[n][0] = a[0][0];
  a[n][1] = a[0][1];
  a[n + 1][0] = a[1][0];
  a[n + 1][1] = a[1][1];
  for (int i = 0; i + 2 <= n + 1; ++i) {
    double A = a[i + 2][1] - a[i][1], B = a[i][0] - a[i + 2][0];
    double C = -A * a[i][0] - B * a[i][1];
    double dist =
        fabs(A * a[i + 1][0] + B * a[i + 1][1] + C) / sqrt(A * A + B * B) / 2.;
    ans = min(ans, dist);
  }
  cout << fixed << setprecision(11) << ans << endl;
  return 0;
}
