#include <bits/stdc++.h>
using namespace std;
clock_t start;
pair<double, double> P[1003];
double d(pair<double, double> a, pair<double, double> b) {
  return sqrt((a.first - b.first) * (a.first - b.first) +
              (a.second - b.second) * (a.second - b.second));
}
double h(pair<double, double> A, pair<double, double> B,
         pair<double, double> C) {
  double a = d(B, C), b = d(A, C), c = d(B, A), s = (a + b + c) / 2,
         ar = sqrt(s * (s - a) * (s - b) * (s - c));
  return 2.0 * (ar) / b;
}
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    double a, b;
    cin >> a >> b;
    P[i] = make_pair(a, b);
  }
  double D = INT_MAX;
  for (int i = 0; i < n; i++) {
    D = min(D, d(P[i], P[(i + 1) % n]) / 2.0);
  }
  for (int i = 0; i < n; i++) {
    D = min(D, h(P[i], P[(i + 1) % n], P[(i + 2) % n]) / 2.0);
  }
  cout << setprecision(12) << D;
  return 0;
}
