#include <bits/stdc++.h>
using namespace std;
long long labs(long long a) {
  if (a < 0) return -a;
  return a;
}
int main() {
  ios_base::sync_with_stdio(0);
  long double ans = 1e18;
  cout.precision(10);
  cout.setf(ios::fixed);
  int n;
  cin >> n;
  vector<pair<long long, long long> > vc(n);
  for (int i = 0; i < n; ++i) cin >> vc[i].first >> vc[i].second;
  for (int i = 0; i < n; ++i) {
    pair<long long, long long> vc1 =
        make_pair(vc[(i + 2) % n].first - vc[i].first,
                  vc[(i + 2) % n].second - vc[i].second);
    pair<long long, long long> vc2 =
        make_pair(vc[(i + 1) % n].first - vc[i].first,
                  vc[(i + 1) % n].second - vc[i].second);
    long double test = labs(vc1.first * vc2.second - vc2.first * vc1.second);
    test /= sqrt(vc1.first * vc1.first + vc1.second * vc1.second);
    test /= 2;
    ans = min(ans, test);
  }
  cout << ans << endl;
  return 0;
}
