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
P = [tuple(map(float, input().split())) for i in range(3)]


def get_per(v):
	return [v[1], -v[0]]

def get_mid(a, b):
	return [(u+v)/2.0 for u,v in zip(a, b)], get_per([v-u for u, v in zip(a, b)])

eps = 1e-6

def cross(a, b):
	return a[0]*b[1] - a[1]*b[0]

def get_intersection(a, u, b, v):
	nv = [-x for x in v]
	d = cross(u, nv)
	if abs(d) < eps: return None
	L = cross([y-x for x,y in zip(a, b)], nv)/d
	return a[0] + L*u[0], a[1] + L*u[1]

def length(A):
	return math.sqrt(A[0]**2 + A[1]**2)


def getsAngle(A):
	dx, dy = A
	t = math.atan2(dy, dx)
	if abs(t) < eps: return 0
	if t < 0: t += 2*math.pi
	return t

def getAngle(A, B):
	t = getsAngle(B) - getsAngle(A)
	if abs(t) < eps: return 0
	if t < 0: t += 2*math.pi
	return t

ans = 1e18
for _ in range(3):
	P.append(P.pop(0))

	a,u = get_mid(P[0], P[1])
	b,v = get_mid(P[1], P[2])

	O = get_intersection(a, u, b, v)
	# print(P, O)
	if O is None: continue

	r2 = length([O[0] - P[1][0], O[1] - P[1][1]]) **2
	# print(O, P[1], r2)

	Q = []
	for x, y in P:
		Q.append((x - O[0], y - O[1]))

	Q = [(getsAngle(p), p) for p in Q]
	Q.sort()


	T = [getAngle(Q[i][1], Q[(i+1)%3][1]) for i in range(3)]

	# print(sum(T) - 2*math.pi)
	# print([t*180/math.pi for t in T])

	for n in range(3, 200):
		dt = 2*math.pi/n
		delta = [abs(t - dt*round(t/dt)) for t in T]
		if sum(delta) < 3*eps:
			# print(n, [t/dt for t in T])
			area = n*0.5*r2*math.sin(dt)
			ans = min(ans, area)


print("%.10f"%ans)