#include <bits/stdc++.h>
using namespace std;
int n, a[1005], x[1005], y[1005];
double tinh(int i, int j, int k) {
  double a = y[k] - y[i], b = x[i] - x[k];
  double c = -a * x[i] - b * y[i];
  double t = sqrt(a * a + b * b);
  return (a * x[j] + b * y[j] + c) / t;
}
int main() {
  cin.tie(0);
  cout.tie(0);
  ios::sync_with_stdio(0);
  cin >> n;
  for (int i = 1; i <= n; ++i) cin >> x[i] >> y[i];
  x[n + 1] = x[1];
  y[n + 1] = y[1];
  x[n + 2] = x[2];
  y[n + 2] = y[2];
  double ds = 1e9;
  for (int i = 1; i <= n; ++i) ds = min(ds, abs(tinh(i, i + 1, i + 2)) / 2.0);
  cout << fixed << setprecision(7) << ds;
}
