#include <bits/stdc++.h>
using namespace std;
int a[1000], b[1000];
double sqr(int x) { return 1. * x * x; }
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i] >> b[i];
  double min_h = 4e9;
  for (int i = 0; i < n; i++) {
    int j = (i + 1) % n;
    int k = (i + 2) % n;
    long long s = abs(1ll * (b[k] - b[i]) * (a[j] - a[i]) -
                      1ll * (b[j] - b[i]) * (a[k] - a[i]));
    double h = s / sqrt(sqr(a[i] - a[k]) + sqr(b[i] - b[k]));
    if (h < min_h) min_h = h;
  }
  cout << setprecision(9) << min_h / 2;
}
