#include <bits/stdc++.h>
using namespace std;
long double a, b, c;
long double len(pair<long double, long double> f,
                pair<long double, long double> s) {
  return sqrt((f.first - s.first) * (f.first - s.first) +
              (f.second - s.second) * (f.second - s.second));
}
void go(pair<long double, long double> f, pair<long double, long double> s) {
  a = f.second - s.second;
  b = s.first - f.first;
  c = f.first * s.second - s.first * f.second;
  long double dd = sqrt(a * a + b * b);
  a /= dd;
  b /= dd;
  c /= dd;
}
long double dist(pair<long double, long double> cur) {
  return a * cur.first + b * cur.second + c;
}
signed main() {
  int n;
  cin >> n;
  vector<pair<long double, long double> > v;
  for (int i = 0; i < n; ++i) {
    long double a, b;
    cin >> a >> b;
    v.push_back(make_pair(a, b));
  }
  v.push_back(v[0]);
  v.push_back(v[1]);
  long double ans = 1234567890123456789;
  for (int i = 1; i <= n; ++i) {
    ans = min(ans, len(v[i], v[i - 1]));
    go(v[i - 1], v[i + 1]);
    ans = min(ans, dist(v[i]));
  }
  cout << fixed << setprecision(10) << ans / 2 << endl;
}
