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;
const double eps = 1e-6;
const double PI = acos(-1.0);
inline int sgn(double a) { return (a > eps) - (a < -eps); }
inline double sqr(double a) { return a * a; }
struct Point {
  double x, y;
  void read() { scanf("%lf %lf", &x, &y); }
} trg[3], rec[110], cir;
double ang[3], A[3], R;
inline double Dist(Point a, Point b) {
  return sqrt(sqr(a.x - b.x) + sqr(b.y - a.y));
}
inline double xmul(Point a, Point b, Point c) {
  return (b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x);
}
void OutCir(Point T[]) {
  double a, b, c, c1, c2, area;
  double xA, yA, xB, yB, xC, yC;
  area = fabs(xmul(T[0], T[1], T[2])) / 2;
  a = Dist(T[0], T[1]);
  b = Dist(T[1], T[2]);
  c = Dist(T[2], T[0]);
  R = a * b * c / (4 * area);
  xA = T[0].x, yA = T[0].y;
  xB = T[1].x, yB = T[1].y;
  xC = T[2].x, yC = T[2].y;
  c1 = (xA * xA + yA * yA - xB * xB - yB * yB) / 2;
  c2 = (xA * xA + yA * yA - xC * xC - yC * yC) / 2;
  cir.x = (c1 * (yA - yC) - c2 * (yA - yB));
  cir.x /= ((xA - xB) * (yA - yC) - (xA - xC) * (yA - yB));
  cir.y = (c1 * (xA - xC) - c2 * (xA - xB));
  cir.y /= ((yA - yB) * (xA - xC) - (yA - yC) * (xA - xB));
}
void Sort() {
  int i, j;
  for (i = (0); i <= (2); ++i)
    ang[i] = atan2(trg[i].y - cir.y, trg[i].x - cir.x);
  for (i = (0); i <= (2); ++i)
    for (j = (i + 1); j <= (2); ++j)
      if (sgn(ang[i] - ang[j]) > 0) {
        swap(trg[i], trg[j]);
        swap(ang[i], ang[j]);
      }
  A[0] = ang[1] - ang[0];
  A[1] = ang[2] - ang[1];
  A[2] = 2 * PI - A[0] - A[1];
}
int Ok(int n) {
  double a = 2 * PI / n, b = 0;
  int t[3] = {0}, i;
  for (i = (0); i <= (2); ++i) {
    b = 0.0;
    while (sgn(A[i] - b) > 0) {
      t[i]++;
      b += a;
    }
  }
  return (t[0] && t[1] && t[2] && t[0] + t[1] + t[2] == n);
}
int main() {
  int i;
  for (i = (0); i <= (2); ++i) trg[i].read();
  OutCir(trg);
  Sort();
  for (i = (3); i <= (100); ++i) {
    if (Ok(i)) break;
  }
  double area = 0;
  if (i > 100) i = 100;
  area = i * R * R * sin(2 * PI / i) / 2.0;
  printf("%.8lf\n", area);
  return 0;
}