include<stdio.h>
int main()
{
int a,b,c;
while(~scanf("%d %d %d,",&a,&b,&c))
{
if(a+b>c&&b+c>a&&a+c>b)
{//刚刚有些犹豫等要与等边的判断关系
if(a==b&&a==c&&b==c)
printf("Equilateral triangle!");
else if(a==b||a==c||b==c)
printf("Isosceles triangle!");
else
printf("Ordinary triangle!");
}
else
printf("Not a triangle!");
printf("\n");
}
return 0;
}