find-handi-bhaiya
Source: hackerearth
Difficulty: EASY

ACT I
Handi Bhaiya is a very notorious kid and always troubles his parents and friends. One day his naughtiness lead him to a demon Kali(THE COBRA COMMANDER) who trapped him into a triangular magic cell. Handi Bhaiya parents want their kid back and asks for your help.

ACT II
You knew that the entire humanity will hate you but then also you decided to rescue Handi Bhaiya (don't ask why). You went to Kali and asked to release Handi Bhiaya. Kali being good by heart decided to free him but you have to solve a puzzle first.

Puzzle
Kali asks to write you a program that will tell whether Handi Bhaiya can be inside the given cell or not, for T(1 ≤ T ≤ 10^6) test cases. For each test case you will be given a cell(not necessarily closed and bounded) that will have 3 integral sides- a, b and c representing the sides of cell. You have to tell whether Handi can be inside that cell or not. Remember that the cell was triangular in which he was trapped.
If the cell is triangular then also print the type of triangle - isosceles, equilateral or scalene. Refer given test case for sample output.
Constraints: 0<a,b,c<2^64

SAMPLE INPUT
4
15 15 15
13 13 14
3 4 5
10 12 23

SAMPLE OUTPUT
YES. It is a equilateral triangle.
YES. It is a isosceles triangle.
YES. It is a scalene triangle.
NO


t = int(input())
for _ in range(t):
	l = []
	l = list(map(int, input().split()))
	if l[0]+l[1]>l[2] and l[1]+l[2]>l[0] and l[2]+l[0]>l[1]:
		if l[0]==l[1] and l[1]==l[2]:
			print('YES. It is a equilateral triangle.')
		elif l[0]==l[1] or l[1]==l[2] or l[2]==l[0]:
			print('YES. It is a isosceles triangle.')
		else:
			print('YES. It is a scalene triangle.')
	else:
			print('NO')