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 NODE {
  double x, y;
};
NODE pillar[3];
double dis(NODE a, NODE b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
double Heron(double a, double b, double c) {
  double p = (a + b + c) / 2;
  return sqrt(p * (p - a) * (p - b) * (p - c));
}
double Radius(double a, double b, double c) {
  double S = Heron(a, b, c);
  return a * b * c / (4 * S);
}
double fgcd(double a, double b) {
  if (fabs(b - 0) <= (1e-4)) return a;
  if (fabs(a - 0) <= (1e-4)) return b;
  return fgcd(b, fmod(a, b));
}
void gao() {
  double a, b, c;
  double p, S, R, A, B, C;
  double ansS;
  a = dis(pillar[0], pillar[1]);
  b = dis(pillar[1], pillar[2]);
  c = dis(pillar[2], pillar[0]);
  R = Radius(a, b, c);
  A = acos(1 - a * a / (2 * R * R));
  B = acos(1 - b * b / (2 * R * R));
  C = 2 * acos(-1.0) - A - B;
  double angle_fgcd = fgcd(A, fgcd(B, C));
  ansS = acos(-1.0) / angle_fgcd * R * R * sin(angle_fgcd);
  printf("%.8lf\n", ansS);
}
void READ() {
  int i;
  for (i = 0; i < 3; ++i) {
    scanf("%lf%lf", &pillar[i].x, &pillar[i].y);
  }
  gao();
}
int main() {
  READ();
  return 0;
}