#include <bits/stdc++.h>
using namespace std;
struct Point {
  long long x, y;
};
double area(Point a, Point b, Point c) {
  return abs(double((b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x))) / 2;
}
double distance(Point a, Point b) { return hypot(a.x - b.x, a.y - b.y); }
double half_height(Point a, Point b, Point c) {
  return area(a, b, c) / distance(a, c);
}
int main() {
  ios::sync_with_stdio(false);
  cout.setf(ios::fixed);
  cout.precision(10);
  int n;
  cin >> n;
  vector<Point> p(n);
  for (int i = 0; i < n; ++i) {
    cin >> p[i].x >> p[i].y;
  }
  double ans = half_height(p[0], p[1], p[2]);
  for (int i = 3; i < (n + 5); ++i) {
    ans = min(ans, half_height(p[(i - 2) % n], p[(i - 1) % n], p[i % n]));
  }
  cout << ans << "\n";
  return 0;
}
