LearnPy Hub
← If…Else problems
Hard

Acute, Right or Obtuse?

Read three side lengths. Print invalid if they can't form a triangle. Otherwise print two words: equilateral, isosceles or scalene, then acute, right or obtuse (compare the square of the longest side with the sum of the squares of the other two).

Input

Three integers on one line.

Output

One line.

Sample 1

Input
3 4 5
Output
scalene right

Sample 2

Input
2 2 2
Output
equilateral acute
solution.py
Output appears here
Acute, Right or Obtuse? · Python practice problem · LearnPy Hub