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:
from time import *
from math import * 

def dist(x1,y1,x2,y2):
	return ((x1-x2)**2+(y1-y2)**2)**0.5

def isInteger(x):
	return abs(x-round(x))<1e-2

def area(x1,y1,x2,y2,x3,y3):
	a=dist(x1,y1,x2,y2)
	b=dist(x3,y3,x2,y2)
	c=dist(x1,y1,x3,y3)
	d=(a+b+c)/2
	return (d*(d-a)*(d-b)*(d-c))**0.5

def radiusOuter(x1,y1,x2,y2,x3,y3):
	return a*b*c/area(x1,y1,x2,y2,x3,y3)/4

def linePass2Point(x1,y1,x2,y2):
	a=y2-y1
	b=x1-x2
	c=-a*x1-b*y1
	return a,b,c

def intersect(a1,b1,c1,a2,b2,c2):
	y=-(a2*c1-a1*c2)/(a2*b1-a1*b2)
	x=-(b2*c1-b1*c2)/(b2*a1-b1*a2)
	return x,y

def midLine(x1,y1,x2,y2):
	a1,b1,c1=linePass2Point(x1,y1,x2,y2)
	a2,b2=-b1,a1
	x,y=(x1+x2)/2,(y1+y2)/2
	c2=-(a2*x+b2*y)
	return a2,b2,c2

def centerOfOuterTriangle(x1,y1,x2,y2,x3,y3):
	a1,b1,c1=midLine(x1,y1,x2,y2)
	a2,b2,c2=midLine(x1,y1,x3,y3)
	x,y=intersect(a1,b1,c1,a2,b2,c2)
	return x,y,dist(x,y,x1,y1)

def angle(x1,y1,x2,y2,x3,y3):
	# tính góc đối diện với [x1,y1],[x2,y2]
	c=dist(x1,y1,x2,y2)
	b=dist(x3,y3,x2,y2)
	a=dist(x1,y1,x3,y3)
	tg=(a*a+b*b-c*c)/(2*a*b)
	if tg<=-1:
		tg+=1e-5
	elif tg>=1:
		tg-=1e-5
	return acos(tg)

def areaByRadius(r,n):
	return r*r*n*sin(2*pi/n)/2

x1,y1=[float(i) for i in input().split()]
x2,y2=[float(i) for i in input().split()]
x3,y3=[float(i) for i in input().split()]

def check(n):
	global x,y,r
	a=2*pi/n
	return isInteger(a1/a) and isInteger(a2/a) and isInteger(a3/a)

	
x,y,r=centerOfOuterTriangle(x1,y1,x2,y2,x3,y3)
# print(x,y,r)
a1=angle(x1,y1,x2,y2,x,y)
a2=angle(x3,y3,x2,y2,x,y)
a3=angle(x1,y1,x3,y3,x,y)
for i in range(3,101):
	a=2*pi/i
	# print(i,round(areaByRadius(r,i),8),a1/a,a2/a,a3/a)
	t1=int(isInteger(a1/a))
	t2=int(isInteger(a2/a))
	t3=int(isInteger(a3/a))
	if t1+t2+t3>=2:
		print(round(areaByRadius(r,i),9))
		break