#include <bits/stdc++.h>
using namespace std;
long long n;
vector<pair<long long, long long> > p;
double ans = 1000000000.0;
void n_ans(long long a, long long b, long long c) {
  double A = (double)p[c].second - p[a].second;
  double B = (double)p[a].first - p[c].first;
  double C = (double)p[a].second * p[c].first - p[c].second * p[a].first;
  double k = (double)abs(A * p[b].first + B * p[b].second + C) /
             (sqrt(A * A + B * B) * 2);
  if (k < ans) ans = k;
}
int main() {
  cin >> n;
  p.resize(n);
  cin >> p[0].first >> p[0].second;
  cin >> p[1].first >> p[1].second;
  for (long long q = 2; q < n; q++) {
    cin >> p[q].first >> p[q].second;
    n_ans(q - 2, q - 1, q);
  }
  n_ans(n - 2, n - 1, 0);
  n_ans(n - 1, 0, 1);
  cout << setprecision(16) << ans;
}
