#include<stdio.h>#include<math.h>int main(void){float a,b,c,t,p,area;scanf("%f,%f,%f",&a,&b,&c);if(a<b){t=a;a=b;b=t;}if(a<c){t=a;a=c;c=t;}if(b<c){t=b;b=c;c=t;}if((a<(b+c))&&(b>(a-c))) p=(a+b+c)/2; area=sqrt(p*(p-a)*(p-b)*(p-c)); printf("area=%.3f\n",area);if((a==b)&&(b==c)) printf("equilateral triangle"); else if((a*a==b*b+c*c)&&((a==b)||(b==c)||(a==c))) printf("isosceles right triangle"); else if((a*a==b*b+c*c)&&((a!=b)&&(b!=c)&&(a!=c))) printf("right triangle"); if((a*a!=b*b+c*c)&&((a!=b)&&(b!=c)&&(a!=c))&&(a<(b+c))&&(b>(a-c))) printf("triangle");if((a>=(b+c))||(b<=(a-c))) printf("Not triangle");return 0; }




