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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math
#输入三个坐标
room=[]
i=0
while i<3:
	i=i+1
	room.append(list(map(float,input().split())))
#找出垂直平分线
k1=(room[0][1]-room[1][1])/(room[0][0]-room[1][0]+0.0000000001)
k1=-(1/k1)
mid1=[(room[0][0]+room[1][0])/2,(room[0][1]+room[1][1])/2]
b1=mid1[1]-mid1[0]*k1
k2=(room[0][1]-room[2][1])/(room[0][0]-room[2][0]+0.0000000001)
k2=-(1/k2)
mid2=[(room[0][0]+room[2][0])/2,(room[0][1]+room[2][1])/2]
b2=mid2[1]-mid2[0]*k2
#找出圆心
x=(b2-b1)/(k1-k2)
y=k1*x+b1
#算出长度
a=math.sqrt(pow((room[0][1]-room[1][1]),2)+pow((room[0][0]-room[1][0]),2))
b=math.sqrt(pow((room[0][1]-room[2][1]),2)+pow((room[0][0]-room[2][0]),2))
r=math.sqrt(pow((y-room[1][1]),2)+pow((x-room[1][0]),2))
#算出角度的cos值
cos1=(2*r*r-a*a)/(2*r*r)
cos2=(2*r*r-b*b)/(2*r*r)
cos1=float('%.4f'%cos1)
cos2=float('%.4f'%cos2)
#算出与2pi的比例
a=2*math.pi/math.acos(cos1)
b=2*math.pi/math.acos(cos2)
a=1/a
b=1/b
i=1
while i<101:
	m=a*i
	if abs(m-int(m))<0.008 or abs(m-int(m)-1)<0.008:
		break
	i=i+1
j=1
while j<101:
	m=b*j
	if abs(m-int(m))<0.008 or abs(m-int(m)-1)<0.008:
		break
	j=j+1
#print(i,j)
#算出最大公约数
def f(a,b):
	if a<b:
		c=a
		a=b
		b=c
	if a%b==0:
		return b
	else:
		return f(a%b,b)
c=i*j/f(i,j)
if c>100:
	c=100
#算出面积
s=c*r*r*math.sin(2*math.pi/c)/2
#保留六位小数输出
print('%.6f'%s)