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

Solution:
s1 = input().split()
s2 = input().split()
s3 = input().split()

ax = float(s1[0])
ay = float(s1[1])
bx = float(s2[0])
by = float(s2[1])
cx = float(s3[0])
cy = float(s3[1])

det = (bx-ax)*(cy-ay) - (by-ay)*(cx-ax)
det_x = (by-ay)*(ax*ax+ay*ay-cx*cx-cy*cy)-(cy-ay)*(ax*ax+ay*ay-bx*bx-by*by)
det_y = (cx-ax)*(ax*ax+ay*ay-bx*bx-by*by)-(bx-ax)*(ax*ax+ay*ay-cx*cx-cy*cy)
ox = det_x/det/2.0
oy = det_y/det/2.0

def shortest(x, y, pts):
  d2_min = None
  for pt in pts:
    dx = pt[0]-x
    dy = pt[1]-y
    d2 = dx*dx + dy* dy
    if d2_min is None or d2 < d2_min:
      d2_min = d2
  return d2_min

import math
d_min = None
num_min = None
oax = ax - ox
oay = ay - oy
r = math.sqrt(oax*oax+oay*oay)
if(abs(oax) < 1.e-8):
  alpha = math.pi/2 if oay > 0 else -math.pi/2
else:
  alpha = math.atan(oay/oax) if oax > 0 else math.pi + math.atan(oay/oax)

for num in range(3, 101):
  pts = []
  for i in range(1, num):
    rad = i * 2 * math.pi / num
    pts.append((ox+r*math.cos(rad+alpha), oy+r*math.sin(rad+alpha)))
  s2 = shortest(bx, by, pts)
  s3 = shortest(cx, cy, pts)
  s = s2 + s3
  if d_min is None or s < d_min - 1.e-8:
    d_min = s
    num_min = num
beta = 2*math.pi / num_min
area = num_min * r * r * math.sin(beta) /2.0
print(f"{area:.8f}")