#include <bits/stdc++.h>
using namespace std;
long long int n, x, y;
complex<long double> p[1000005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  for (int i = 0; i < int(n); ++i) {
    cin >> x >> y;
    p[i] = {1.0 * x, 1.0 * y};
  }
  p[n] = p[0];
  p[n + 1] = p[1];
  long double ans = 10000000000000.0;
  for (int i = 0; i < int(n); ++i) {
    long double d =
        1.0 * (conj(p[i] - p[i + 1]) * (p[i + 2] - p[i + 1])).imag();
    long double s = 2.0 * abs(p[i] - p[i + 2]);
    ans = min(ans, d / s);
  }
  cout << fixed << setprecision(8) << ans;
  return 0;
}
