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-2;
const double Pi = acos(-1);
double X1, Y1, X2, Y2, X3, Y3, P, A, B, C, S, R, Angle1, Angle2, Angle3, T,
    X[4], Y[4];
double Dist(double XX1, double YY1, double XX2, double YY2) {
  return sqrt((XX1 - XX2) * (XX1 - XX2) + (YY1 - YY2) * (YY1 - YY2));
}
double FMod(double X, double Y) { return X - (int)(X / Y) * Y; }
double FGCD(double X, double Y) {
  if (fabs(Y) < EPS) return X;
  if (fabs(X) < EPS) return Y;
  return FGCD(Y, FMod(X, Y));
}
int main() {
  scanf("%lf%lf", &X[1], &Y[1]);
  scanf("%lf%lf", &X[2], &Y[2]);
  scanf("%lf%lf", &X[3], &Y[3]);
  A = Dist(X[1], Y[1], X[2], Y[2]);
  B = Dist(X[2], Y[2], X[3], Y[3]);
  C = Dist(X[3], Y[3], X[1], Y[1]);
  P = (A + B + C) / 2;
  S = sqrt(P * (P - A) * (P - B) * (P - C));
  R = A * B * C / 4 / S;
  Angle1 = acos(1 - A * A / 2 / R / R);
  Angle2 = acos(1 - B * B / 2 / R / R);
  Angle3 = 2 * Pi - Angle1 - Angle2;
  T = FGCD(FGCD(Angle1, Angle2), Angle3);
  printf("%.6lf", Pi * R * R * sin(T) / T);
  return 0;
}