#K77477. Triangle Classification

    ID: 34873 Type: Default 1000ms 256MiB

Triangle Classification

Triangle Classification

You are given three integers representing the side lengths of a triangle. Your task is to determine whether these integers can form a valid triangle. A triangle is valid if it satisfies the triangle inequality theorem, i.e., (a + b > c), (a + c > b), and (b + c > a). If the triangle is valid, classify it as follows:

- Equilateral: All three sides are equal.
- Isosceles: Exactly two sides are equal.
- Scalene: All sides are different.

If the triangle does not satisfy the triangle inequality theorem, it is considered Invalid.

inputFormat

The input consists of three space-separated integers, (a), (b), and (c), representing the side lengths of a triangle. Input is read from standard input (stdin).

outputFormat

Output a single string denoting the type of the triangle: "Equilateral", "Isosceles", "Scalene", or "Invalid". The output is written to standard output (stdout).## sample

2 2 2
Equilateral