#C11688. Triangle Classification

    ID: 41031 Type: Default 1000ms 256MiB

Triangle Classification

Triangle Classification

Given three integers a, b, and c representing the side lengths of a triangle, classify the triangle as follows:

  • If any side is non-positive or if the three sides do not satisfy the triangle inequality, i.e., \(a+b>c\), \(a+c>b\), and \(b+c>a\), output NO.
  • If all three sides are equal, output Equilateral.
  • If exactly two sides are equal, output Isosceles.
  • If all sides are different and the triangle inequality holds, output Scalene.

The input will be provided through stdin and the output should be written to stdout.

inputFormat

A single line containing three space-separated integers representing the side lengths a, b, and c.

outputFormat

Output one of the following strings: Equilateral, Isosceles, Scalene, or NO (if no valid triangle can be formed).

## sample
3 3 3
Equilateral

</p>