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 punct {
  double x, y;
} a, b, c, m, n, o;
double dd(punct a, punct b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
double unghi(punct b, punct a, punct c) {
  double ab, ac, bc;
  ab = dd(a, b);
  ac = dd(a, c);
  bc = dd(b, c);
  return acos((ac * ac + ab * ab - bc * bc) / (2.0 * ac * ab));
}
int rot(double u) { return (fabs(u - round(u)) < 0.00001); }
int main() {
  int nn;
  double A1, A2, B1, B2, C1, C2, det, r, arie, l, upol, u1, u2, u3;
  double A3, A4, B3, B4, C3, C4;
  cin >> a.x >> a.y;
  cin >> b.x >> b.y;
  cin >> c.x >> c.y;
  A1 = b.y - a.y;
  B1 = a.x - b.x;
  C1 = A1 * a.x + B1 * a.y;
  A2 = c.y - a.y;
  B2 = a.x - c.x;
  C2 = A2 * a.x + B2 * a.y;
  A3 = -B1;
  B3 = A1;
  A4 = -B2;
  B4 = A2;
  m.x = (a.x + b.x) / 2.0;
  m.y = (a.y + b.y) / 2.0;
  n.x = (a.x + c.x) / 2.0;
  n.y = (a.y + c.y) / 2.0;
  C3 = A3 * m.x + B3 * m.y;
  C4 = A4 * n.x + B4 * n.y;
  det = A3 * B4 - A4 * B3;
  o.x = C3 * B4 - C4 * B3;
  o.x /= det;
  o.y = A3 * C4 - A4 * C3;
  o.y /= det;
  u1 = unghi(a, o, b);
  u2 = unghi(a, o, c);
  u3 = unghi(b, o, c);
  for (nn = 3; nn <= 100; nn++) {
    upol = 2 * acos(-1) / nn;
    if ((rot(u1 / upol)) && (rot(u2 / upol)) && (rot(u3 / upol))) {
      r = sqrt((a.x - o.x) * (a.x - o.x) + (a.y - o.y) * (a.y - o.y));
      arie = (nn * r * r * sin(2 * acos(-1) / nn)) / 2.0;
      cout << fixed << setprecision(8) << arie;
      nn = 101;
    }
  }
  return 0;
}