#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int N = 1005;
pair<int, int> p[N];
double get(pair<int, int> p1, pair<int, int> p2, pair<int, int> p3) {
  double x1 = (double)p1.first, y1 = (double)p1.second;
  double x2 = (double)p2.first, y2 = (double)p2.second;
  double x3 = (double)p3.first, y3 = (double)p3.second;
  double d2 = (y1 - y2) * (y1 - y2) + (x1 - x2) * (x1 - x2);
  d2 = sqrt(d2);
  if (x2 == x3) return abs((double)x1 - (double)x3);
  double slope = (y3 - y2) / (x3 - x2);
  double denom = sqrt(1 + slope * slope);
  double num = abs(slope * x1 - slope * x3 - y1 + y3);
  return (num / denom);
}
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> p[i].first >> p[i].second;
  }
  double ansa = get(p[0], p[n - 1], p[1]) / 2.0;
  for (int i = 1; i < n - 1; i++) {
    double temp = get(p[i], p[i - 1], p[i + 1]);
    ansa = min(ansa, temp / 2.0);
  }
  ansa = min(ansa, get(p[0], p[n - 1], p[1]) / 2.0);
  ansa = min(ansa, get(p[n - 1], p[n - 2], p[0]) / 2.0);
  printf("%0.9lf\n", ansa);
  return 0;
}
