A carpenter has three wooden sticks. Can he make a triangle with them? And if yes, what kind?
Three sides make a valid triangle only if the sum of any two sides is greater than the third side. • All three sides equal → Equilateral • Exactly two sides equal → Isosceles • All sides different → Scalene
Input Format A single line with three integers a, b and c.
Output Format Print Invalid, Equilateral, Isosceles or Scalene.
Constraints • 1 ≤ a, b, c ≤ 1000
Examples
Example 1
Input
5 5 5
Output
Equilateral
Explanation All three sides are equal.
Example 2
Input
5 5 8
Output
Isosceles
Explanation Two sides are equal and 5 + 5 > 8.
Example 3
Input
3 4 5
Output
Scalene
Explanation All sides are different and form a valid triangle.
Example 4
Input
1 2 3
Output
Invalid
Explanation 1 + 2 = 3, which is not greater than 3, so the sticks lie flat.
Acceptance—
Accepted0
Submissions0
Auto-save
SavedLn 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
Equilateral
No results yet
Run your code to test it against the sample cases.