Problem: Nowadays all circuses in Berland have a round arena with diameter 13 meters, but in the past things were different.

In Ancient Berland arenas in circuses were shaped as a regular (equiangular) polygon, the size and the number of angles could vary from one circus to another. In each corner of the arena there was a special pillar, and the rope strung between the pillars marked the arena edges.

Recently the scientists from Berland have discovered the remains of the ancient circus arena. They found only three pillars, the others were destroyed by the time.

You are given the coordinates of these three pillars. Find out what is the smallest area that the arena could have.

Input

The input file consists of three lines, each of them contains a pair of numbers –– coordinates of the pillar. Any coordinate doesn't exceed 1000 by absolute value, and is given with at most six digits after decimal point.

Output

Output the smallest possible area of the ancient arena. This number should be accurate to at least 6 digits after the decimal point. It's guaranteed that the number of angles in the optimal polygon is not larger than 100.

Examples

Input

0.000000 0.000000
1.000000 1.000000
0.000000 1.000000


Output

1.00000000

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
struct CGlb {
  double EPS;
  double PI;
  CGlb() {
    EPS = 1e-6;
    PI = acos(-1.0);
  }
} x_glb;
int dcmp(double x) {
  if (x < -x_glb.EPS) return -1;
  return x > x_glb.EPS;
}
template <typename T>
T max(const T& a, const T& b, const T& c) {
  return max(max(a, b), c);
}
template <class T>
struct CPoint {
  T x, y;
  CPoint() {
    x = 0;
    y = 0;
  }
  CPoint(T x, T y) {
    this->x = x;
    this->y = y;
  }
  bool read() { return scanf("%lf%lf", &x, &y) != EOF; }
  CPoint<T> operator-(const CPoint<T>& other) {
    return CPoint(x - other.x, y - other.y);
  }
  T operator/(const CPoint& other) { return x * other.x + y * other.y; }
  T operator*(const CPoint& other) { return x * other.y - y * other.x; }
  T length() { return sqrt((x) * (x) + (y) * (y)); }
  T length_sqr() { return ((x) * (x) + (y) * (y)); }
};
template <class T>
struct CTriangle {
  CPoint<T> a, b, c;
  CTriangle() {}
  CTriangle(const CPoint<T>& a, const CPoint<T>& b, const CPoint<T>& c) {
    this->a = a;
    this->b = b;
    this->c = c;
  }
  bool read() { return a.read() && b.read() && c.read(); }
  CPoint<T> excenter() {
    CPoint<T> A = b - a;
    CPoint<T> B = c - a;
    CPoint<T> C = CPoint<T>(A / A / 2, B / B / 2);
    T d = A * B;
    return CPoint<T>(a.x + (C.x * B.y - C.y * A.y) / d,
                     a.y + (A.x * C.y - B.x * C.x) / d);
  }
  double angle() {
    double cr = (b - a) * (c - a);
    double dt = (b - a) / (c - a);
    if (dcmp(cr) == 0) cr = 0;
    if (dcmp(dt) == 0) dt = 0;
    return atan2(cr, dt);
  }
};
double get_e(double a, double b) { return fabs(a - round(a / b) * b); }
CTriangle<double> r;
double e[111];
double s[111];
int ans;
int main() {
  int i, j, k;
  double a, b, c, d;
  CPoint<double> o;
  while (r.read()) {
    o = r.excenter();
    a = fabs(CTriangle<double>(o, r.b, r.c).angle());
    b = fabs(CTriangle<double>(o, r.a, r.c).angle());
    c = fabs(CTriangle<double>(o, r.a, r.b).angle());
    ans = 3;
    for (i = 3; i <= 100; i++) {
      d = 2 * x_glb.PI / double(i);
      e[i] = max(get_e(a, d), get_e(b, d), get_e(c, d));
      d *= 0.5;
      s[i] = ((o - r.a).length()) * ((o - r.a).length()) * sin(d) * cos(d) *
             x_glb.PI / d;
      if (dcmp(e[i] - e[ans]) < 0) ans = i;
    }
    printf("%.8lf\n", s[ans]);
  }
  return 0;
}