import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) { 
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            if((a+b>c)&&(a+c>b)&&(b+c>a)){
                if(a==b&&b==c){
                    System.out.println("Equilateral triangle!");
                }else if(a==b||a==c||b==c){
                    System.out.println("Isosceles triangle!");
                }else{
                    System.out.println("Ordinary triangle!");
                }
            }else{
                System.out.println("Not a triangle!");
            }
        }
    }
}