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-9;
const double PI = 3.1415926535897932384626433832795;
const int inf = (int)1e9;
const int MAX_N = 1000 + 100;
double dp[MAX_N];
double prob[MAX_N];
pair<long long, long long> arr[MAX_N];
struct line {
  double A, B, C;
  line(double _A, double _B, double _C) { A = _A, B = _B, C = _C; }
  line() {}
};
line point_to_line(complex<double> p1, complex<double> p2) {
  line ret;
  ret.A = p2.imag() - p1.imag();
  ret.B = p1.real() - p2.real();
  ret.C = ret.A * p1.real() + ret.B * p1.imag();
  return ret;
}
bool line_line(line l1, line l2, complex<double> &p) {
  double det = l1.A * l2.B - l2.A * l1.B;
  if (fabs(det) <= eps) return 0;
  p = complex<double>((l2.B * l1.C - l1.B * l2.C) / det,
                      (l1.A * l2.C - l2.A * l1.C) / det);
  return 1;
}
bool find_cir(complex<double> p1, complex<double> p2, complex<double> p3,
              complex<double> &o, double &r) {
  line l1 = point_to_line(p1, p2);
  swap(l1.A, l1.B);
  l1.A *= -1.;
  double x1 = p1.real() + p2.real();
  x1 /= 2;
  double y1 = p1.imag() + p2.imag();
  y1 /= 2;
  l1.C = l1.A * x1 + l1.B * y1;
  line l2 = point_to_line(p1, p3);
  swap(l2.A, l2.B);
  l2.A *= -1.;
  double x2 = p1.real() + p3.real();
  x2 /= 2;
  double y2 = p1.imag() + p3.imag();
  y2 /= 2;
  l2.C = l2.A * x2 + l2.B * y2;
  if (!line_line(l1, l2, o)) return 0;
  r = abs(o - p1);
  return 1;
}
bool isok(complex<double> p1, complex<double> p2, complex<double> o,
          double ang) {
  double a = fabs(arg((p1 - o) / (p2 - o)));
  double c = a / ang;
  double cc = floor(c + 1e-4);
  return fabs(c - cc) <= 1e-4;
}
int main() {
  complex<double> p[3];
  for (int i = 0; i < 3; i++) {
    double x, y;
    cin >> x >> y;
    p[i] = complex<double>(x, y);
  }
  double r;
  complex<double> o;
  find_cir(p[0], p[1], p[2], o, r);
  for (int i = 3; i <= 100; i++) {
    double ang = 2 * PI / i;
    if (isok(p[0], p[1], o, ang) == 0) continue;
    if (isok(p[0], p[2], o, ang) == 0) continue;
    double h = r * sin(ang);
    double area = i * h * r / 2.;
    printf("%.12f\n", area);
    break;
  }
  return 0;
}