// Online C compiler to run C program online
#include <stdio.h>
#include <math.h>

int main() {
  double A, B, C, aux;
  scanf("%lf %lf %lf", &A, &B, &C);

  if(B>A && B>C){ // B é maior
    aux = A;
    A = B;
    B = aux;
  }
  else{ 
    if(C>A && C>B){ // C é o maior
      aux = A;
      A = C;
      C = aux;
    }
  }

  if(A>=B+C){
    printf("NAO FORMA TRIANGULO\n");
  }
  else{ // formam um triangulo
    if(A*A==B*B+C*C){
      printf("TRIANGULO RETANGULO");
    }
    if(A*A>B*B+C*C){
      printf("TRIANGULO OBTUSANGULO\n");
    }
    if(A*A<B*B+C*C){
      printf("TRIANGULO ACUTANGULO\n");
    }

    if(A==B && B==C && A==C){
      printf("TRIANGULO EQUILATERO\n");
    }
    else{
      if(A==B || B==C || A==C){
        printf("TRIANGULO ISOSCELES\n");
      }
    }     
  }
  
  return 0;
}