#include <bits/stdc++.h>
using namespace std;
int n;
pair<int, int> a[1005];
double d = 1e10;
double calc(int id) {
  pair<int, int> xx = a[id];
  pair<int, int> yy = a[id + 1];
  pair<int, int> zz = a[id + 2];
  double aa = 1.0 * (zz.second - xx.second);
  double bb = 1.0 * (xx.first - zz.first);
  double cc = 1.0 * xx.first * (xx.second - zz.second) +
              1.0 * xx.second * (zz.first - xx.first);
  double T = abs(1.0 * aa * yy.first + 1.0 * bb * yy.second + 1.0 * cc);
  double M = 1.0 * sqrt(aa * aa + bb * bb);
  return 1.0 * (T / M);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = (1); i <= (n); ++i) cin >> a[i].first >> a[i].second;
  a[n + 1] = a[1];
  a[n + 2] = a[2];
  for (int i = (1); i <= (n); ++i) {
    d = min(d, calc(i));
  }
  cout << fixed << setprecision(10) << d / 2;
  return 0;
}
