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>
const int dbg = 0;
struct XY {
  long double x, y;
  XY operator+(const XY& o) const { return XY{x + o.x, y + o.y}; }
  XY operator-(const XY& o) const { return XY{x - o.x, y - o.y}; }
  XY operator*(long double u) const { return XY{x * u, y * u}; }
  XY rot90() const { return XY{-y, x}; }
  long double norm() const { return hypot(x, y); }
  long double arg() const { return atan2(y, x); }
};
XY intersect(XY a1, XY b1, XY a2, XY b2) {
  XY a = a1 - a2;
  long double det = b2.x * b1.y - b1.x * b2.y;
  long double l2 = (b1.y * a.x - b1.x * a.y) / det;
  return a2 + b2 * l2;
}
const long double EPS = 1e-3;
long double fgcd(long double a, long double b) {
  assert(a > -EPS);
  assert(b > -EPS);
  if (dbg) printf("gcd %.10Lf %.10Lf\n", a, b);
  if (fabs(b) < EPS) return a;
  return fgcd(b, fmod(a, b));
}
int main() {
  const long double PI = acos(-1.);
  XY a;
  scanf("%Lf %Lf", &a.x, &a.y);
  XY b;
  scanf("%Lf %Lf", &b.x, &b.y);
  XY c;
  scanf("%Lf %Lf", &c.x, &c.y);
  XY ab = (a + b) * 0.5;
  XY ab_dir = (b - a).rot90();
  XY bc = (b + c) * 0.5;
  XY bc_dir = (c - b).rot90();
  XY o = intersect(ab, ab_dir, bc, bc_dir);
  if (dbg) printf("O=(%Lf,%Lf)\n", o.x, o.y);
  XY oa = a - o;
  XY ob = b - o;
  XY oc = c - o;
  long double r = oa.norm();
  if (dbg) printf("r=%Lf\n", r);
  long double a_arg = oa.arg();
  long double b_arg = ob.arg();
  long double c_arg = oc.arg();
  long double ab_arg = fabs(b_arg - a_arg);
  long double bc_arg = fabs(c_arg - b_arg);
  if (dbg) printf("ab_arg=%.10Lf bc_arg=%.10Lf\n", ab_arg, bc_arg);
  long double alpha = fgcd(ab_arg, bc_arg);
  if (dbg) printf("alpha=%.10Lf\n", alpha);
  long double beta = fgcd(alpha, 2.0 * PI);
  if (dbg) printf("beta=%.10Lf\n", beta);
  long double area = PI * r * r * sin(beta) / beta;
  printf("%.9Lf\n", area);
}