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

# try to solve following:
# ax + by = c
# px + qy = r
def stupidSolve(a,b,c,p,q,r):
	# a == p == 0 cannot happen
	# it could happen only if x1 == x2 == x3, which means 3 points are on 1 line
	# this cannot happen on outcircle
	#
	# --> solve for x
	# aqx + bqy = cq
	# bpx + bqy = br
	# x(aq-bp) = (cq-br)
	# x = (cq-br)/(aq-bp)
	#
	# --> solve for y 
	# apx + bpy = cp
	# apx + aqy = ar
	# y(bp-aq) = (cp-ar)   
	# y = (cp-ar)/(bp-aq)

	x0 = (c*q - b*r)/(a*q - b*p)
	y0 = (c*p - a*r)/(b*p - a*q)

	return x0, y0

def angleBetween3Points(x0, y0, x1, y1, x2, y2):
	# x0, y0 is the middle point
	result = math.atan2(y2 - y0, x2 - x0) - math.atan2(y1 - y0, x1 - x0)
	result = abs(result)
	if result > math.pi:
		result = (2*math.pi) - result
	return result


def areaRegularPolygonCircumradius(radius, numsides):
	area = (radius*radius)*numsides
	area *= math.sin((math.pi*2)/numsides)
	area /= 2
	return area

def smallestPossibleNumberOfSides(a1, a2, a3):
	for numsides in range(3,101):
		a0 = (2*math.pi) / numsides

		c1 = round(a1/a0,5)
		c2 = round(a2/a0,5)
		c3 = round(a3/a0,5)

		if c1 == int(c1) and c2 == int(c2) and c3 == int(c3):
			return numsides

if __name__ == '__main__':
	x1,y1 = tuple(map(float,input().split())) # A
	x2,y2 = tuple(map(float,input().split())) # B
	x3,y3 = tuple(map(float,input().split())) # C

	# Get origin of outcircle
	a = 2*(x2-x1)
	b = 2*(y2-y1)
	c = ((x2*x2) + (y2*y2)) - ((x1*x1) + (y1*y1))

	p = 2*(x3-x1)
	q = 2*(y3-y1)
	r = ((x3*x3) + (y3*y3)) - ((x1*x1) + (y1*y1))

	x0, y0 = stupidSolve(a,b,c,p,q,r)

	# Get angle between A0B0, A0C0, B0C0
	OAB = angleBetween3Points(x0,y0,x1,y1,x2,y2)
	OAC = angleBetween3Points(x0,y0,x1,y1,x3,y3)
	OBC = angleBetween3Points(x0,y0,x2,y2,x3,y3)

	# Get smallest possible number of sides
	numsides = smallestPossibleNumberOfSides(OAB,OAC,OBC)

	# Get radius
	radius = math.sqrt((x1-x0)*(x1-x0) + (y1-y0)*(y1-y0))

	res = areaRegularPolygonCircumradius(radius, numsides)
	print("{:.6f}".format(res))