#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 3;
int n;
struct point {
  double x, y;
} p[N];
void file() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
double sqr(double x) { return x * x; }
double calc(int i) {
  double x1 = p[i - 1].x, y1 = p[i - 1].y;
  double x2 = p[i].x, y2 = p[i].y;
  double x3 = p[i + 1].x, y3 = p[i + 1].y;
  double S =
      (1.0 / 2.0) * (x1 * y3 + x2 * y1 + x3 * y2 - x1 * y2 - x2 * y3 - x3 * y1);
  double day = sqrt(sqr(x3 - x1) + sqr(y3 - y1));
  return S / day;
}
void solve() {
  cin >> n;
  for (int i = 1; i <= n; ++i) cin >> p[i].x >> p[i].y;
  p[0] = p[n], p[n + 1] = p[1];
  double res = 1e15;
  for (int i = 1; i <= n; ++i) res = min(res, calc(i));
  cout << setprecision(6) << fixed << res;
}
int main() {
  file();
  solve();
}
