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:
import math
points = []
for i in range(3):
	points.append([float(x) for x in raw_input().split(' ')])
l1 = points[0:2]
l2 = points[1:]
m1 = [(l1[0][0]+l1[1][0])/2, (l1[0][1]+l1[1][1])/2]
m2 = [(l2[0][0]+l2[1][0])/2, (l2[0][1]+l2[1][1])/2]
if l1[0][0] == l1[1][0]:
	cy = (l1[0][1]+l1[1][1])/2
	if l2[0][1] == l2[1][1]:
		cx = (l2[0][0] + l2[1][0])/2
	else:
		s2 = -(l2[1][0]-l2[0][0])/(l2[1][1]-l2[0][1])
		cx = m2[0] + (cy-m2[1])/s2
elif l1[0][1] == l1[1][1]:
	cx = (l1[0][0]+l1[1][0])/2
	if l2[0][0] == l2[1][0]:
		cy = (l2[0][1] + l2[1][1])/2
	else:
		s2 = -(l2[1][0]-l2[0][0])/(l2[1][1]-l2[0][1])
		cy = m2[1] + (cx-m2[0])*s2 
else:
	if l2[0][1] == l2[1][1]:
		cx = (l2[0][0] + l2[1][0])/2
		s1 = -(l1[1][0]-l1[0][0])/(l1[1][1]-l1[0][1])
		cy = m1[1] + (cx-m1[0])*s1
	elif l2[0][0] == l2[1][0]:
		cy = (l2[0][1] + l2[1][1])/2
		s1 = -(l1[1][0]-l1[0][0])/(l1[1][1]-l1[0][1])
		cx = m1[0] + (cy-m1[1])/s1
	else:
		s1 = -(l1[1][0]-l1[0][0])/(l1[1][1]-l1[0][1])
		s2 = -(l2[1][0]-l2[0][0])/(l2[1][1]-l2[0][1])
		cx = (m2[1]-m1[1]+s1*m1[0]-s2*m2[0])/(s1-s2)
		cy = m1[1] + s1*(cx-m1[0])
start = points[0]
r = ((start[0]-cx)**2 + (start[1]-cy)**2)**0.5
if start[0] >= cx:
	start_angle = math.asin((start[1]-cy)/r)
else:
	start_angle = math.pi - math.asin((start[1]-cy)/r)

for i in range(3,101):
	angles = [x*2*math.pi/i+start_angle for x in range(i)]
	new_points = [(r*math.cos(x)+cx, r*math.sin(x)+cy) for x in angles]
	#print angles
	#print new_points
	w1 = True
	for j in points:
		w2 = False
		for k in new_points:
			if ((j[0]-k[0])**2 + (j[1]-k[1])**2)**0.5 < r*0.000001:
				w2 = True
		if not w2:
			w1 = False
	if w1:
		print 0.5*r*math.cos(math.pi/i)*r*math.sin(math.pi/i)*2*i
		break