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 pi = acos(-1.0);
int sgn(double t) { return t > 1e-6 ? 1 : (t < -1e-6 ? -1 : 0); }
struct P {
  double x, y;
  P() {}
  P(double _x, double _y) : x(_x), y(_y) {}
  P operator+(const P& a) const { return P(x + a.x, y + a.y); }
  P operator-(const P& a) const { return P(x - a.x, y - a.y); }
  P operator*(const double& a) const { return P(x * a, y * a); }
  P operator/(const double& a) const { return P(x / a, y / a); }
  P left() { return P(-y, x); }
  P right() { return P(y, -x); }
  P cut(double a) {
    a /= sqrt(x * x + y * y);
    return P(x * a, y * a);
  }
  P rotate_left(double ang) const {
    double c = cos(ang), s = sin(ang);
    return P(x * c - y * s, y * c + x * s);
  }
  P rotate_right(double ang) const {
    double c = cos(ang), s = sin(ang);
    return P(x * c + y * s, y * c - x * s);
  }
  bool operator==(const P& a) const {
    return sgn(x - a.x) == 0 && sgn(y - a.y) == 0;
  }
  bool operator<(const P& a) const {
    return sgn(x - a.x) == 0 ? sgn(y - a.y) < 0 : x < a.x;
  }
};
double cross(const P& a, const P& b, const P& c) {
  return (b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y);
}
double squ(const double& t) { return t * t; }
double Dist(const P& a, const P& b) {
  return sqrt(squ(b.x - a.x) + squ(b.y - a.y));
}
bool check(const int& n, const double& A) {
  int tmp = A / (pi / n) + 0.1;
  return sgn(tmp * pi / n - A) == 0;
}
int main() {
  P p[3];
  for (int i = 0; i < 3; i++) scanf("%lf%lf", &p[i].x, &p[i].y);
  double a = Dist(p[1], p[2]);
  double b = Dist(p[2], p[0]);
  double c = Dist(p[0], p[1]);
  double A = acos((b * b + c * c - a * a) / (2 * b * c));
  double B = acos((c * c + a * a - b * b) / (2 * c * a));
  double C = acos((a * a + b * b - c * c) / (2 * a * b));
  double s = fabs(cross(p[0], p[1], p[2])) / 2;
  double r = a * b * c / 4 / s;
  int n;
  for (n = 3; n <= 100; n++)
    if (check(n, A) && check(n, B) && check(n, C)) break;
  double res = n * r * r * sin(2 * pi / n) / 2;
  printf("%.8lf\n", res);
  return 0;
}