#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
long long int power(long long int a, long long int p) {
  long long int ans = 1;
  while (p > 0) {
    if (p % 2) {
      ans *= a;
      ans %= mod;
    }
    a *= a;
    a %= mod;
    p /= 2;
  }
  return ans % mod;
}
vector<long long int> getbinary(long long int first) {
  vector<long long int> bin(101, 0);
  int iter = 0;
  while (first > 0) {
    bin[iter] = first % 2;
    iter++;
    first /= 2;
  }
  return bin;
}
struct ball {
  double first, v, m;
  long long int ind;
};
bool comparator1(const ball &a, const ball &b) { return a.first < b.first; }
bool comparator2(const ball &a, const ball &b) { return a.ind < b.ind; }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n;
  cin >> n;
  pair<double, double> a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i].first >> a[i].second;
  }
  double ans = 1e18;
  for (int i = 0; i < n; i++) {
    int i1, i2, i3;
    i1 = i;
    i2 = (i + 1) % n;
    i3 = (i + 2) % n;
    double a1 = a[i3].second - a[i1].second;
    double b1 = a[i1].first - a[i3].first;
    double c1 = -(a[i1].second * b1) - (a[i1].first * a1);
    ans = min(ans, abs(a1 * a[i2].first + b1 * a[i2].second + c1) /
                       (sqrt(a1 * a1 + b1 * b1)));
  }
  cout << setprecision(20) << ans / 2.0 << endl;
}
