#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1060;
const long long INF = 2000000000;
double x[MAX_N];
double y[MAX_N];
long double len(int i, int j) {
  long double ans =
      sqrtl((x[i] - x[j]) * (x[i] - x[j]) + (y[i] - y[j]) * (y[i] - y[j]));
  return ans;
}
long double S(int i, int j, int k) {
  long double a, b, c, p;
  a = len(i, j);
  b = len(i, k);
  c = len(k, j);
  p = (a + b + c) / 2.0;
  return sqrtl(p * (p - a) * (p - b) * (p - c));
}
long double f(int i) {
  long double s = S(i - 1, i, i + 1), a;
  a = len(i - 1, i + 1);
  return 2.0 * s / a;
}
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> x[i] >> y[i];
  long double ans = INF, a, s;
  for (int i = 1; i < n - 1; i++) {
    ans = min(ans, f(i));
  }
  s = S(n - 1, 0, 1);
  a = len(n - 1, 1);
  ans = min(ans, 2.0 * s / a);
  s = S(n - 2, n - 1, 0);
  a = len(n - 2, 0);
  ans = min(ans, 2.0 * s / a);
  cout << fixed << setprecision(15) << ans / 2.0;
  return 0;
}
