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 PYTHON):

Solution:
# Code Forces 1: C: Ancient Berland Circus.
# Fri. May. 22, 2020, By: arccosh.

import cmath
from fractions import gcd
import math

def rationalApproxDy(v, lim):
  n1, d1 = 0, 1
  n2, d2 = 1, 0
  while True:
    a = int(math.floor(v))
    n1, d1, n2, d2 = n2, d2, a * n2 + n1, a * d2 + d1
    if d2 > lim:
      break
    yield n2, d2
    v -= a
    if v == 0:
      break
    v = 1 / v

def twoSignedTriArea(ax, ay, bx, by, cx, cy):
  return ax * by + bx * cy + cx * ay - bx * ay - cx * by - ax * cy

def circle3Points(a, b, c):
  det = twoSignedTriArea(a.real, a.imag, b.real, b.imag, c.real, c.imag)
  if abs(det) < 1E-14:
    return None
  amsq = a.real * a.real + a.imag * a.imag
  bmsq = b.real * b.real + b.imag * b.imag
  cmsq = c.real * c.real + c.imag * c.imag
  x = twoSignedTriArea(amsq, a.imag, bmsq, b.imag, cmsq, c.imag) / 2
  y = -twoSignedTriArea(amsq, a.real, bmsq, b.real, cmsq, c.real) / 2
  return complex(x / det, y / det)

def readComplex():
  x, y = (float(t) for t in raw_input().split())
  return complex(x, y)

def lcm(a, b):
  return a * b / gcd(a, b)

def solve(plist):
  cent = circle3Points(*plist)
  qlist = [p - cent for p in plist]
  alist = [cmath.phase(qlist[i] / qlist[(i + 1) % 3]) for i in xrange(3)]
  flist = [(a / (math.pi * 2)) % 1 for a in alist]
  glist = [list(rationalApproxDy(f, 100))[-1][1] for f in flist]
  n = lcm(lcm(glist[0], glist[1]), glist[2])
  r = sum(abs(q) for q in qlist) / 3
  return n, n * r * r * math.sin(math.pi * 2 / n) / 2

def main():
  plist = [readComplex() for _ in xrange(3)]
  n, a = solve(plist)
  print('%.8f' % a)

if __name__ == '__main__':
  main()