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>
const double EPS = 1e-4;
const double PI = acos(-1);
int dcmp(double x) {
  if (fabs(x) < EPS)
    return 0;
  else
    return x < 0 ? -1 : 1;
}
struct Vector {
  double x, y;
  Vector operator+(const Vector &s) const { return Vector{x + s.x, y + s.y}; }
  Vector operator-(const Vector &s) const { return Vector{x - s.x, y - s.y}; }
};
double dot(Vector a, Vector b) { return a.x * b.x + a.y * b.y; }
double length(Vector x) { return sqrt(dot(x, x)); }
double angle(Vector a, Vector b) {
  return acos(dot(a, b) / length(a) / length(b));
}
Vector a, b, c;
bool checkInt(double x) { return dcmp(x - round(x)) == 0; }
int main() {
  scanf("%lf%lf%lf%lf%lf%lf", &a.x, &a.y, &b.x, &b.y, &c.x, &c.y);
  double A = length(b - c), B = length(a - c), C = length(a - b),
         r = C / sin(angle(a - c, b - c)) / 2;
  double An = acos((B * B + C * C - A * A) / 2 / B / C) * 2,
         Bn = acos((A * A + C * C - B * B) / 2 / A / C) * 2,
         Cn = 2 * PI - An - Bn;
  for (int i = 3; i <= 100; i++) {
    double in = PI * 2 / i, c1 = An / in, c2 = Bn / in, c3 = Cn / in;
    if (!checkInt(c1) || !checkInt(c2) || !checkInt(c3) ||
        round(c1 + c2 + c3) != i)
      continue;
    double s = r * r * sin(in) / 2 * i;
    printf("%.6lf", s);
    break;
  }
  return 0;
}