#include <bits/stdc++.h>
using namespace std;
int n;
pair<long double, long double> a[2000];
long double ans = 1e18;
long double dist(int i) {
  long double x0 = a[i].first, y0 = a[i].second;
  long double x1 = a[i - 1].first, second_math = a[i - 1].second;
  long double x2 = a[i + 1].first, y2 = a[i + 1].second;
  long double ans =
      abs((y2 - second_math) * x0 - (x2 - x1) * y0 + x2 * second_math -
          y2 * x1) /
      (sqrt((y2 - second_math) * (y2 - second_math) + (x2 - x1) * (x2 - x1)));
  return ans;
}
long double get_dist(int i) {
  long double x0 = a[i].first, y0 = a[i].second;
  long double x1 = a[i - 1].first, second_math = a[i - 1].second;
  long double ans =
      sqrt((x0 - x1) * (x0 - x1) + (y0 - second_math) * (y0 - second_math));
  return ans;
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    long double first, y;
    cin >> first >> y;
    a[i] = make_pair(first, y);
  }
  a[0] = a[n];
  a[n + 1] = a[1];
  for (int i = 1; i <= n; i++) {
    long double cur = dist(i);
    ans = min(ans, cur / 2.0);
    cur = get_dist(i);
    ans = min(ans, cur / 2.0);
  }
  cout << fixed << setprecision(20) << ans;
  return 0;
}
