#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int MAX = 1e5 + 5;
double x[MAX], y[MAX];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> x[i] >> y[i];
  double ret = 1e18;
  for (int i = 0; i < n; i++) {
    double den = sqrt(((x[i] - x[(i + 2) % n]) * (x[i] - x[(i + 2) % n])) +
                      ((y[i] - y[(i + 2) % n]) * (y[i] - y[(i + 2) % n])));
    double val = ((y[(i + 1) % n] - y[i]) * (x[i] - x[(i + 2) % n])) +
                 (x[(i + 1) % n] - x[i]) * (y[(i + 2) % n] - y[i]);
    val /= den;
    val /= 2.0;
    ret = min(ret, abs(val));
  }
  cout << fixed << setprecision(10) << ret;
  return 0;
}
