import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.*;
class Ideone
{
{
double xA, yA, xB, yB, xC, yC, AB, BC, CA, alpha, beta, gamma;
Scanner in
= new Scanner
(System.
in); xA = in.nextDouble();
yA = in.nextDouble();
xB = in.nextDouble();
yB = in.nextDouble();
xC = in.nextDouble();
yC = in.nextDouble();
if ((xA==xB) && (xB==xC) && (yA == yB) && (yB == yC))
{
System.
out.
printf ("Невозможно определить тип треугольника"); }
else if ((xA==xB && yA==yB) || (xB==xC && yB==yC) || (xC==xA && yC==yA))
{
System.
out.
printf ("прямоугольный"); }
else
{
AB
= Math.
sqrt((xB
-xA
)*(xB
-xA
)+(yB
-yA
)*(yB
-yA
)); BC
= Math.
sqrt((xC
-xB
)*(xC
-xB
)+(yC
-yB
)*(yC
-yB
)); CA
= Math.
sqrt((xA
-xC
)*(xA
-xC
)+(yA
-yC
)*(yA
-yC
)); alpha = (AB*AB + CA*CA - BC*BC)/(2*AB*CA);
beta = (AB*AB + BC*BC -CA*CA)/(2*AB*BC);
gamma = (CA*CA + BC*BC - AB*AB)/(2*CA*BC);
{
if (( alpha == 0 ) || (beta == 0) || (gamma == 0))
{
System.
out.
printf ("прямоугольный") ; }
if ((alpha < 0)||(beta < 0) || (gamma < 0))
{
System.
out.
printf ("тупоугольный") ; }
if ((alpha > 0) && (beta > 0) && (gamma > 0))
{
System.
out.
printf ("остроугольный") ; }
}
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLm1hdGguKjsKCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlkb3VibGUgeEEsIHlBLCB4QiwgeUIsIHhDLCB5QywgQUIsIEJDLCBDQSwgYWxwaGEsIGJldGEsIGdhbW1hOwoJICAgIFNjY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