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);
struct pt {
  double x, y;
  pt(){};
  pt(double _x, double _y) : x(_x), y(_y){};
  pt operator+(pt const& p) { return pt(x + p.x, y + p.y); }
  pt operator-(pt const& p) { return pt(x - p.x, y - p.y); }
  pt operator*(pt const& p) { return pt(x * p.x, y * p.y); }
  pt operator/(pt const& p) { return pt(x / p.x, y / p.y); }
  pt operator~() { return pt(y, x); }
  friend pt operator*(double val, pt const& p) {
    return pt(val * p.x, val * p.y);
  }
  double dot(pt const& p) { return x * p.x + y * p.y; }
};
void findCircle(pt p1, pt p2, pt p3, pt& center, double& radius) {
  pt vt12 = p1 - p2;
  pt vt13 = p1 - p3;
  double d31 = p3.dot(p3) - p1.dot(p1);
  double d12 = p1.dot(p1) - p2.dot(p2);
  center = 0.5 * ~(d31 * vt12 + d12 * vt13) / (~vt13 * vt12 - ~vt12 * vt13);
  radius = hypot(center.x - p1.x, center.y - p1.y);
}
double alpha(pt vt1, pt vt2) {
  double norm1 = hypot(vt1.x, vt1.y);
  double norm2 = hypot(vt2.x, vt2.y);
  return acos(vt1.dot(vt2) / (norm1 * norm2));
}
bool isEqual(double n1, double n2) { return abs(n1 - n2) / n2 < 1e-6; }
bool isDivisible(double ang1, double ang2, double div) {
  double ang3 = 2 * PI - ang1 - ang2;
  double aux = ang1 / div;
  if (abs(round(aux) - aux) / aux > 1e-6) return false;
  aux = ang2 / div;
  if (abs(round(aux) - aux) / aux > 1e-6) return false;
  aux = ang3 / div;
  if (abs(round(aux) - aux) / aux > 1e-6) return false;
  return true;
}
int main() {
  pt p1, p2, p3, cent;
  int i, sides;
  double ang1, ang2, ang3, alp, area, radius;
  cin >> p1.x >> p1.y;
  cin >> p2.x >> p2.y;
  cin >> p3.x >> p3.y;
  findCircle(p1, p2, p3, cent, radius);
  ang1 = alpha(p1 - cent, p2 - cent);
  ang2 = alpha(p3 - cent, p1 - cent);
  ang3 = alpha(p2 - cent, p3 - cent);
  if (ang1 > ang2) swap(ang1, ang2);
  if (ang2 > ang3) swap(ang2, ang3);
  for (i = 3; i <= 100; i++) {
    alp = PI - (i - 2) * PI / i;
    if (isDivisible(ang1, ang2, alp)) {
      sides = i;
      break;
    }
  }
  alp = (sides - 2) * PI / sides;
  area = radius * radius * sin(alp) * sides / 2;
  cout << setprecision(8) << fixed << area << endl;
}