while True: try: a,b,c=map(int,input().split()) if a+b<=c or a+c<=b or b+c<=a: print("Not a triangle!") elif a==b==c: print("Equilateral triangle!") elif a==b or a==c or b==c: print("Isosceles triangle!") else: print("Ordinary triangle!") except: break