import java.util.* ;
import java.lang.* ;
import java.io.* ;
import java.math.* ;
class Ideone
{
{
double xA, yA, xB, yB, xC, yC; double h, S, AB, BC, AC;
Scanner in
= new Scanner
( System .
in ) ; xA = in.nextDouble ( ) ;
yA = in.nextDouble ( ) ;
xB = in.nextDouble ( ) ;
yB = in.nextDouble ( ) ;
xC = in.nextDouble ( ) ;
yC = in.nextDouble ( ) ;
AB
= Math .
sqrt ( ( xB
- xA
) * ( xB
- xA
) + ( yB
- yA
) * ( yB
- yA
) ) ; BC
= Math .
sqrt ( ( xC
- xB
) * ( xC
- xB
) + ( yC
- yB
) * ( yC
- yB
) ) ; AC
= Math .
sqrt ( ( xA
- xC
) * ( xA
- xC
) + ( yA
- yC
) * ( yA
- yC
) ) ; if ( ( AB> BC+ AC) && ( BC> AB+ AC) && ( AC> AB+ BC) )
{
System .
out .
printf ( "Treygolnik ne syshestvyet" ) ; }
else
{
S
= Math .
abs ( ( xB
- xA
) * ( yC
- yA
) - ( xC
- xA
) * ( yB
- yA
) ) / 2.0 ; h = ( 2 * S) / BC;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLm1hdGguKjsKCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlkb3VibGUgeEEsIHlBLCB4QiwgeUIsIHhDLCB5QzsgZG91YmxlIGgsIFMsIEFCLCBCQywgQUM7CgkgICAgU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkgICAgeEEgPSBpbi5uZXh0RG91YmxlKCk7CgkgICAgeUEgPSBpbi5uZXh0RG91YmxlKCk7CgkgICAgeEIgPSBpbi5uZXh0RG91YmxlKCk7CgkgICAgeUIgPSBpbi5uZXh0RG91YmxlKCk7CgkgICA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