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:
import math

array, newarray = [], [0]*3

for x in range(3):
  n = input().split()
  m = list(map(float, n))
  array.append(m)

def magn_sq(point):
  return (point[0]**2 + point[1]**2)
  
def dist_sq(point1, point2):
  return magn_sq([point1[0] - point2[0], point1[1] - point2[1]])

def circumcenter(point1, point2, point3):
  point_1 = [point1[0] - point3[0], point1[1] - point3[1]]
  point_2 = [point2[0] - point3[0], point2[1] - point3[1]]
  const = 2*(point_1[0]*point_2[1] - point_1[1]*point_2[0])
  xcoord = (point_2[1]*magn_sq(point_1) - point_1[1]*(magn_sq(point_2)))/const
  ycoord = (point_1[0]*magn_sq(point_2) - point_2[0]*(magn_sq(point_1)))/const
  return [xcoord + point3[0], ycoord + point3[1]]

def checkInt(a):
  r = int(round(a,0))
  return abs(r - a)/a < 0.0001

center = circumcenter(array[0], array[1], array[2])
center = list(map(lambda x: round(x, 1), center))

for x in array:
  x[0] = x[0] - center[0]
  x[1] = x[1] - center[1]

radius = math.sqrt(magn_sq(array[0]))
radius = round(radius, 6)

for x in range(3):
  newarray[x] = math.sqrt(dist_sq(array[x], array[(x+1)%3]))

for counter in range(3):
  if checkInt(newarray[counter]):
    newarray[counter] = round(newarray[counter], 0)

def distToAngle(p):
  if p/(2*radius) > 1:
    return 0.5
  return (math.asin(p/(2*radius)))/math.pi

newarray = list(map(distToAngle, newarray))

def gcf(a,b):
  if a >= b:
    if a - b < 0.001:
      return a
    else:
      return gcf(a-b, b)
  else:
    return gcf(b, a)

gcd = 1/gcf(gcf(newarray[0], newarray[1]), newarray[2])

i = 1
while (not checkInt(i*gcd)):
  i += 1

t = i*gcd

numsides = int(round(t,0))

area = 0.5*numsides*(radius**2)*math.sin(2*math.pi/numsides)

if area < 10:
  area = round(area, 0)

print(area)