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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


# C. Ancient Berland Circus
# time limit per test2 seconds
# memory limit per test64 megabytes
# inputstandard input
# outputstandard output
# 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.

# Sample test(s)
# input
# 0.000000 0.000000
# 1.000000 1.000000
# 0.000000 1.000000
# output
# 1.00000000

import math

def gcd(a, b):
	if a > b:
		a, b = b, a
	while b > 0:
		b = b % a
	return a

x = [0, 0, 0]
y = [0, 0, 0]
midx = [0, 0]
midy = [0, 0]
A = [0, 0]
B = [0, 0]
C = [0, 0]
x[0], y[0] = map(float, raw_input().split(" "))
x[1], y[1] = map(float, raw_input().split(" "))
x[2], y[2] = map(float, raw_input().split(" "))
for i in range(2):
	# print x[i],y[i]
	midx[i] = (x[i] + x[i + 1]) / 2
	midy[i] = (y[i] + y[i + 1]) / 2
	# print midx[i],midy[i]
	if x[i] == x[i + 1]:
		A[i] = 0
		B[i] = 1
		C[i] = -midy[i]
	elif y[i] == y[i + 1]:
		A[i] = 1
		B[i] = 0
		C[i] = -midx[i]
	else:
		A[i] = (x[i + 1] - x[i])
		B[i] = (y[i + 1] - y[i])
		C[i] = (x[i] - x[i + 1]) * midx[i] - (y[i + 1] - y[i]) * midy[i]
	# print A[i],"x+", B[i],"y+",C[i],"=0"
if A[0] == 0:
	ry = -C[0] / B[0]
	rx = -(B[1] * ry + C[1]) / A[1]
else:
	ry = (A[1] * C[0] - A[0] * C[1]) / (A[0] * B[1] - A[1] * B[0])
	rx = -(B[0] * ry + C[0]) / A[0]
# print rx, ry

x.append(x[0])
y.append(y[0])
mintheta = 1e15
r2 = (x[0] - rx) * (x[0] - rx) + (y[0] - ry) * (y[0] - ry)
theta = []
for i in range(3):
	v1x = x[i] - rx
	v1y = y[i] - ry
	v2x = x[i + 1] - rx
	v2y = y[i + 1] - ry
	costheta = (v1x * v2x + v1y * v2y) / r2
	theta.append(math.acos(costheta))
	if theta[i] < mintheta:
		mintheta = theta[i]
div = 1
while 1:
	ltheta = mintheta / div
	canbediv = True
	for i in range(3):
		divi = theta[i] / ltheta
		if abs(round(divi) - divi) > 1e-4:
			canbediv = False
			break

		divi = (2 * math.pi - theta[i]) / ltheta
		if abs(round(divi) - divi) > 1e-4:
			canbediv = False
			break
	if canbediv:
		break
	else:
		div += 1
poly = int(round(math.pi / mintheta * 2 * div))

# print math.pi/mintheta*2
# poly = int (round(math.pi / mintheta * 2))
# print poly, r2, mintheta, div
area = poly * r2 * math.sin(mintheta / div) / 2
print(area)