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;
template <class T>
struct Point {
  typedef const Point& R;
  T x, y;
  explicit Point(T x = T(), T y = T()) : x(x), y(y) {}
  Point operator+(R p) const { return Point(x + p.x, y + p.y); }
  Point operator-(R p) const { return Point(x - p.x, y - p.y); }
  Point operator*(T d) const { return Point(x * d, y * d); }
  Point operator/(T d) const { return Point(x / d, y / d); }
  T cross(R p) const { return x * p.y - y * p.x; }
  T dist2() const { return x * x + y * y; }
  double dist() const { return sqrt((double)dist2()); }
  Point perp() const { return Point(-y, x); }
  double ang() const { return atan2(y, x); }
};
template <class T>
istream& operator>>(istream& is, Point<T>& p) {
  is >> p.x >> p.y;
  return is;
}
template <class Point>
double ccRadius(const Point& A, const Point& B, const Point& C) {
  return (B - A).dist() * (C - B).dist() * (A - C).dist() /
         abs((B - A).cross(C - A)) / 2;
}
template <class Point>
Point ccCenter(const Point& A, const Point& B, const Point& C) {
  Point b = C - A, c = B - A;
  return A + (b * c.dist2() - c * b.dist2()).perp() / b.cross(c) / 2;
}
double PI = 3.14159265358979F;
double eps = 1e-6F;
int main() {
  Point<double> points[3];
  for (int i = 0; i < 3; ++i) cin >> points[i];
  Point<double> center = ccCenter(points[0], points[1], points[2]);
  double ang[3];
  for (int i = 0; i < 3; ++i) {
    ang[i] = (points[i] - center).ang();
    while (ang[i] < -eps) ang[i] += 2 * PI;
  }
  for (int n = 3; true; ++n) {
    bool ok = 1;
    for (int j = 1; j < 3; ++j) {
      int k;
      for (k = 0; k < n; ++k) {
        double a = ang[0] + k * 2.0 * PI / n;
        while (a < eps) a += 2 * PI;
        while (a >= 2 * PI - eps) a -= 2 * PI;
        if (a < ang[j] + 1e-5F && a > ang[j] - 1e-5F) break;
      }
      if (k == n) ok = 0;
    }
    if (ok) {
      double r = ccRadius(points[0], points[1], points[2]);
      double area = n * sin(2 * PI / n) * r * r / 2.0;
      printf("%.7lf\n", area);
      return 0;
    }
  }
}