while True:
try:
lis = list(map(int,input().split()))
lis.sort()
if lis[0] + lis [1] > lis[2]:
if lis[0] == lis [1] == lis[2]:
print('Equilateral triangle!')
elif lis[0] == lis[1] or lis[1] == lis[2]:
print('Isosceles triangle!')
else:
print('Ordinary triangle!')
else:
print('Not a triangle!')
except:
break
try:
lis = list(map(int,input().split()))
lis.sort()
if lis[0] + lis [1] > lis[2]:
if lis[0] == lis [1] == lis[2]:
print('Equilateral triangle!')
elif lis[0] == lis[1] or lis[1] == lis[2]:
print('Isosceles triangle!')
else:
print('Ordinary triangle!')
else:
print('Not a triangle!')
except:
break