While reviewing a triangular courtyard design, Priya wants to know both its shape category (equilateral, isosceles, or scalene) and whether it happens to be a right triangle. Given the lengths of three sides (they always form a valid triangle), print "EQUILATERAL", "ISOSCELES", or "SCALENE". Additionally, on a second line print "RIGHT" if it's also a right triangle (within the given integer side lengths, exact check using a²+b²=c²), otherwise print "NOT-RIGHT".
Input
Three integers a b c.
Output
Two lines as described.
Constraints
1 ≤ a,b,c ≤ 10^4
Sample Input
3 4 5
Sample Output
SCALENE RIGHT
main.c
Loading editor…
Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.