#include <bits/stdc++.h>
using namespace std;
double a, b, c;
void f(long long int x1, long long int x2, long long int y1, long long int y2) {
  if (x1 == x2) {
    a = 1, b = 0, c = -x1;
    return;
  }
  if (y1 == y2) {
    a = 0, b = 1, c = -y1;
    return;
  }
  double m = ((y2 - y1) * 1.0) / (x2 - x1);
  a = m, b = -1, c = y1 - m * x1;
}
double dist(long long int x1, long long int y1) {
  return abs((a * x1 + b * y1 + c)) / (sqrt((a * a + b * b) * 1.0));
}
int main() {
  long long int t = 1, n, m, i, j, k, sum = 0;
  cin >> n;
  long long int x[n], y[n];
  for (i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
  }
  double ans;
  f(x[n - 1], x[1], y[n - 1], y[1]);
  ans = dist(x[0], y[0]);
  f(x[n - 2], x[0], y[n - 2], y[0]);
  ans = min(ans, dist(x[n - 1], y[n - 1]));
  for (i = 1; i < n - 1; i++) {
    f(x[i - 1], x[i + 1], y[i - 1], y[i + 1]);
    ans = min(ans, dist(x[i], y[i]));
  }
  cout << setprecision(15) << ans / 2.0;
  return 0;
}
