#include <bits/stdc++.h>
using namespace std;
long long n;
vector<pair<double, double> > P;
double d(pair<double, double> a, pair<double, double> b) {
  double tmp = (a.first - b.first) * (a.first - b.first) +
               (a.second - b.second) * (a.second - b.second);
  return sqrt(tmp);
}
double dist(pair<double, double> a, pair<double, double> b,
            pair<double, double> c) {
  double A = c.second - b.second;
  double B = b.first - c.first;
  double C = b.second * c.first - b.first * c.second;
  double tmp = abs(A * a.first + B * a.second + C) / sqrt(A * A + B * B);
  return tmp;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (long long i = 0; i < n; i++) {
    pair<double, double> a;
    cin >> a.first >> a.second;
    P.push_back(a);
  }
  double res = 1e18;
  for (long long i = 0; i < n; i++)
    for (long long j = 0; j < n; j++)
      if (i != j) {
        long long j = (i + 1) % n;
        res = min(res, d(P[i], P[j]) / 2);
      }
  for (long long i = 0; i < n; i++) {
    long long j = (i - 1 + n) % n;
    long long k = (i + 1) % n;
    res = min(res, dist(P[i], P[j], P[k]) / 2);
  }
  cout << setprecision(9) << res;
}
