#include <bits/stdc++.h>
using namespace std;
const int N = 1010;
long double x[N], y[N];
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> x[i] >> y[i];
  }
  long double ans = 1e18;
  for (int i = 0; i < n; ++i) {
    int prv = (i - 1 + n) % n;
    int nx = (i + 1) % n;
    long double a = y[prv] - y[nx];
    long double b = x[nx] - x[prv];
    long double c = x[prv] * y[nx] - x[nx] * y[prv];
    long double d = fabs(a * x[i] + b * y[i] + c) / sqrt(a * a + b * b);
    ans = min(ans, d / 2);
  }
  cout << fixed;
  cout << setprecision(10);
  cout << ans;
  return 0;
}
