#include <bits/stdc++.h>
using namespace std;
vector<pair<long long, long long>> points;
double calc(int l, int i, int r) {
  double dis = sqrt(abs(points[l].first - points[r].first) *
                        abs(points[l].first - points[r].first) +
                    abs(points[l].second - points[r].second) *
                        abs(points[l].second - points[r].second));
  double darea = abs(((points[r].first - points[l].first) *
                      (points[l].second - points[i].second)) -
                     (points[l].first - points[i].first) *
                         (points[r].second - points[l].second));
  return darea / dis;
}
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a, b;
    cin >> a >> b;
    points.push_back({a, b});
  }
  double ans = 1e14;
  for (int i = 0; i < n; i++) {
    int l = (i - 1 + n) % n, r = (i + 1) % n;
    ans = min(ans, calc(l, i, r));
  }
  cout << fixed << setprecision(8) << (ans / 2) << endl;
}
