#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  pair<double, double> ara[n];
  for (int i = 0; i < n; i++) {
    scanf("%lf %lf", &ara[i].first, &ara[i].second);
  }
  double mini = 100000000000009.0;
  for (int i = 0; i < n; i++) {
    int a = (i - 1 + n) % n;
    int b = (i + 1) % n;
    double x1 = ara[a].first, x2 = ara[b].first, y1 = ara[a].second,
           y2 = ara[b].second;
    if (x1 == x2) {
      mini = min(mini, fabs(ara[i].first - x1));
      continue;
    }
    double m = (y1 - y2) / (x1 - x2);
    double c = y1 - m * x1;
    double dist =
        fabs((ara[i].second - m * ara[i].first - c)) / (sqrt(1 + m * m));
    mini = min(dist, mini);
  }
  printf("%.10lf\n", mini / 2);
  return 0;
}
