import java.util.Scanner;

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