#include <bits/stdc++.h>
using namespace std;
const int NMax = 1005;
const long double eps = 0.0000001;
struct po {
  long double x, y;
};
po a[NMax];
int n;
int l, r;
long double dist_point_dr(po C, po A, po B) {
  long double a = A.y - B.y;
  long double b = B.x - A.x;
  long double c = A.x * B.y - A.y * B.x;
  return (fabs(a * C.x + b * C.y + c) / sqrt(a * a + b * b));
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i].x >> a[i].y;
  }
  long double ans = 2000000000;
  for (int i = 1; i <= n; ++i) {
    if (i == 1) {
      l = n;
      r = i + 1;
    } else if (i == n) {
      l = n - 1;
      r = 1;
    } else {
      l = i - 1;
      r = i + 1;
    }
    long double e = dist_point_dr(a[i], a[l], a[r]);
    ans = min(ans, e / 2);
  }
  cout << fixed << setprecision(8) << ans << '\n';
  return 0;
}
