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>
double getGcd(double a, double b) {
  double base = a;
  double tmp = 0.0;
  if (a < b) {
    tmp = a;
    a = b;
    b = tmp;
  }
  while ((a - b) / base > 0.02) {
    tmp = a - b;
    if (tmp > b) {
      a = tmp;
    } else {
      a = b;
      b = tmp;
    }
  }
  return a;
}
int getSideNum(double fSide1, double fSide2, double fSide3, double fRadius) {
  double fSideLen = 0;
  double fAng1, fAng2, fAng3;
  int n = 0;
  fAng1 = 2 * asin(0.5 * fSide1 / fRadius);
  fAng2 = 2 * asin(0.5 * fSide2 / fRadius);
  fAng3 = 2 * asin(0.5 * fSide3 / fRadius);
  double fGcd1 = getGcd(fAng1, fAng2);
  double fGcd2 = getGcd(fGcd1, fAng3);
  double fAng = getGcd(fGcd2, 2.0 * 3.141592653);
  n = (int)(2.0 * 3.141592653 / fAng + 0.1);
  return n;
}
double distXY(double x1, double y1, double x2, double y2) {
  double a, b;
  a = x1 - x2;
  b = y1 - y2;
  return sqrt(a * a + b * b);
}
double getArea(double fRadius, int n) {
  double fArea = 0.5 * fRadius * fRadius * sin(2.0 * 3.141592653 / n) * n;
  return fArea;
}
int main() {
  double fX1, fX2, fX3, fY1, fY2, fY3, fCenterX, fCenterY, fRadius, fSide1,
      fSide2, fSide3, fArea;
  int n = 0;
  scanf("%lf%lf%lf%lf%lf%lf", &fX1, &fY1, &fX2, &fY2, &fX3, &fY3);
  fCenterX = 0.5 *
             ((fY3 - fY1) * (fX2 * fX2 + fY2 * fY2 - fX1 * fX1 - fY1 * fY1) -
              (fY2 - fY1) * (fX3 * fX3 + fY3 * fY3 - fX1 * fX1 - fY1 * fY1)) /
             ((fY3 - fY1) * (fX2 - fX1) - (fY2 - fY1) * (fX3 - fX1));
  fCenterY = 0.5 *
             ((fX3 - fX1) * (fX2 * fX2 + fY2 * fY2 - fX1 * fX1 - fY1 * fY1) -
              (fX2 - fX1) * (fX3 * fX3 + fY3 * fY3 - fX1 * fX1 - fY1 * fY1)) /
             ((fX3 - fX1) * (fY2 - fY1) - (fX2 - fX1) * (fY3 - fY1));
  fSide1 = distXY(fX1, fY1, fX2, fY2);
  fSide2 = distXY(fX2, fY2, fX3, fY3);
  fSide3 = distXY(fX3, fY3, fX1, fY1);
  fRadius = distXY(fCenterX, fCenterY, fX1, fY1);
  n = getSideNum(fSide1, fSide2, fSide3, fRadius);
  fArea = getArea(fRadius, n);
  printf("%.6lf", fArea);
  return 0;
}