#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  pair<double, double> arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i].first >> arr[i].second;
  }
  double m_dist = 100000000000000.0;
  for (int i = 0; i < n; i++) {
    double a, b, c, d, e, f;
    if (i == 0) {
      a = arr[n - 1].first;
      b = arr[n - 1].second;
    } else {
      a = arr[i - 1].first;
      b = arr[i - 1].second;
    }
    c = arr[i].first;
    d = arr[i].second;
    if (i == n - 1) {
      e = arr[0].first;
      f = arr[0].second;
    } else {
      e = arr[i + 1].first;
      f = arr[i + 1].second;
    }
    double alpha = f - b;
    double beta = e - a;
    double dist = fabs(alpha * (c - a) + beta * (b - d)) /
                  sqrt(alpha * alpha + beta * beta);
    if (dist < m_dist) {
      m_dist = dist;
    }
  }
  cout << fixed << setprecision(10) << m_dist / 2 << endl;
  return 0;
}
