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, sin, pi, cos, acos, asin, degrees, floor
sxy=list()
for c in range(3):
	sxy.append(input().split())
	sxy[c][0]=float(sxy[c][0])
	sxy[c][1]=float(sxy[c][1])
x1=sxy[0][0]
y1=sxy[0][1]
x2=sxy[1][0]
y2=sxy[1][1]
x3=sxy[2][0]
y3=sxy[2][1]
x0t=x1*x1*(y2-y3)+x2*x2*(y3-y1)+x3*x3*(y1-y2)+y1*y1*(y2-y3)+y2*y2*(y3-y1)+y3*y3*(y1-y2)
x0b=2*(x1*(y2-y3)+x2*(y3-y1)+x3*(y1-y2))
x0=x0t/x0b
y0t=2*x0*(x1-x3)+x3*x3-x1*x1+y3*y3-y1*y1
y0b=2*(y3-y1)
y0=y0t/y0b
r1=sqrt((x0-x1)*(x0-x1)+(y0-y1)*(y0-y1))
f1x=acos((x1-x0)/r1)
f1y=asin((y1-y0)/r1)
# print('r=',r1)
# print('=======')
for j in range(98):
	lx=list();
	ly=list();
	k=j+3
	fx=f1x
	fy=f1y
	for q in range(k):
		lx.append(round(r1*cos(fx)+x0,8))
		ly.append(round(r1*sin(fy)+y0,8))
		fx+=(2*pi/k)
		fy-=(2*pi/k)
	# sss=0.5*k*r1*r1*sin(2*pi/k)
	# print(k,sss)
	# if k==14:
		# print ('x1,x2,x3:   ',x1,x2,x3)
		# print (lx)
		# break
	zc=0
	for z in range(k):
		if ((x1-0.000009)<lx[z]<(x1+0.000009)) or ((x2-0.000009)<lx[z]<(x2+0.000009))or((x3-0.000009)<lx[z]<(x3+0.000009)):
			zc+=1
	if zc>2:
		sss=0.5*k*r1*r1*sin(2*pi/k)
		print(sss)
		break
	# if ((x1 in lx)or((x1-0.000009) in lx)or((x1+0.000009) in lx)) and ((x2 in lx)or((x2-0.000009) in lx)or((x2+0.000009) in lx)) and ((x3 in lx)or((x3-0.000009) in lx)or((x3+0.000009) in lx)):
		# sss=0.5*k*r1*r1*sin(2*pi/k)
		# print(sss)
		# break
	# else:
		# print(j, k, 'f')