#include <bits/stdc++.h>
using namespace std;
long double len(pair<long long, long long> a, pair<long long, long long> b) {
  return hypot(a.first - b.first, a.second - b.second);
}
pair<long long, long long> operator-(pair<long long, long long> a,
                                     pair<long long, long long> b) {
  return {a.first - b.first, a.second - b.second};
}
long double operator^(pair<long long, long long> a,
                      pair<long long, long long> b) {
  return a.first * b.second - a.second * b.first;
}
long double len(pair<long long, long long> a, pair<long long, long long> b,
                pair<long long, long long> c) {
  return fabs(((a - c) ^ (b - c)) / len(a, b));
}
signed main() {
  long long n;
  cin >> n;
  pair<long long, long long> p[n + 2];
  for (long long i = 0; i < n; i++) {
    cin >> p[i].first >> p[i].second;
  }
  p[n] = p[0], p[n + 1] = p[1];
  long double ans = 2e9;
  for (long long i = 1; i <= n; i++) {
    ans = min(ans, len(p[i - 1], p[i + 1], p[i]));
  }
  cout << fixed << setprecision(20) << ans / 2.0;
  return 0;
}
