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 math import sqrt, acos, pi, sin, cos

er = 10**-3

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

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

def calcA(r, s):
	return acos(1-s**2/(2*r**2))

def calcS(a, s):
	return sqrt(s**2/(2-2*cos(a)))

def isInt(i):
	return abs(i - int(i)) < er or abs(i - int(i) - 1) < er 

def findMin(t1, t2, t3, r):
	m = 10**10
	t = 3 * t1 / t2
	for n2 in range(1, 101):
		if(isInt(n2 * t1 / t2) and isInt(n2 * t3 / t2)):
			n1 = int(n2 * t1 / t2+.5)
			n3 = int(n2 * t3 / t2+.5)
			a = (sin(2 * pi / (n1 + n2 + n3)) * r / 2) * (n1 + n2 + n3)
			if(abs(a) > er):
				m = min(m, a)
	return m

def gen(n, a):
	an = (n-2)*pi/n
	return (s * cos(a*an)+300, s * sin(a*an)+300)

def ans(n, s):
	return n * sin(2 * pi / n) * s**2 / 2


#n = 8
#s = 2
#a = [0, 4, 6]
#x1, y1 = gen(n, a[0])
#x2, y2 = gen(n, a[1])
#x3, y3 = gen(n, a[2])
x1, y1 = map(float, input().split(" "))
x2, y2 = map(float, input().split(" "))
x3, y3 = map(float, input().split(" "))
a=2*(x2-x1)
b=2*(y2-y1)
c=x2**2-x1**2+y2**2-y1**2
d=2*(x2-x3)
e=2*(y2-y3)
f=x2**2-x3**2+y2**2-y3**2
y=(d*c-f*a)/(d*b-e*a)
if(a != 0): 
	x=(c-b*y)/a
else:
	x=(f-e*y)/d

r1=(dist1(x2, x, y2, y) + dist1(x1, x, y1, y) + dist1(x3, x, y3, y)) / 3
r=(dist(x2, x, y2, y) + dist(x1, x, y1, y) + dist(x3, x, y3, y)) / 3

t1 = calcA(r, dist(x1, x2, y1, y2))
t2 = calcA(r, dist(x1, x3, y1, y3))
t3 = calcA(r, dist(x2, x3, y2, y3))
if(abs(t1 + t2 + t3 - 2 * pi) < er):
	print("%.8f" % (findMin(t1, t2, t3, r1)))
else:
	t = sorted([t1, t2, t3])
	print("%.8f" % (findMin(2 * pi - t[2], t[1], t[0], r1)))