#include <iostream>
#include <cmath>
using namespace std;
int main(){
double xA, yA, xB, yB, xC, yC, AB, BC, CA, alpha, beta, gamma;
cin >> xA >> yA >> xB >> yB >> xC >> yC;
if ((xA==xB) && (xB==xC) && (yA == yB) && (yB == yC))
{
cout << ("Невозможно определить тип треугольника");
}
else if ((xA==xB && yA==yB) || (xB==xC && yB==yC) || (xC==xA && yC==yA))
{
cout << ("прямоугольный");
}
else
{
AB = sqrt((xB-xA)*(xB-xA)+(yB-yA)*(yB-yA));
BC = sqrt((xC-xB)*(xC-xB)+(yC-yB)*(yC-yB));
CA = 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))
{
cout << ("прямоугольный") ;
}
if ((alpha < 0)||(beta < 0) || (gamma < 0))
{
cout << ("тупоугольный") ;
}
if ((alpha > 0) && (beta > 0) && (gamma > 0))
{
cout << ("остроугольный") ;
}
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IG1haW4oKXsKICAgIGRvdWJsZSB4QSwgeUEsIHhCLCB5QiwgeEMsIHlDLCBBQiwgQkMsIENBLCBhbHBoYSwgYmV0YSwgZ2FtbWE7CiAgICBjaW4gPj4geEEgPj4geUEgPj4geEIgPj4geUIgPj4geEMgPj4geUM7CglpZiAoKHhBPT14QikgJiYgKHhCPT14QykgJiYgKHlBID09IHlCKSAmJiAoeUIgPT0geUMpKQoJewoJCWNvdXQgPDwgKCLQndC10LLQvtC30LzQvtC20L3QviDQvtC/0YDQtdC00LXQu9C40YLRjCDRgtC40L8g0YLRgNC10YPQs9C+0LvRjNC90LjQutCwIik7Cgl9CgllbHNlIGlmICgoeEE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