#CCBCMCHIN0000056. Ba đoạn thẳng và loại tam giác (Three Segments and Triangle Type)

Ba đoạn thẳng và loại tam giác (Three Segments and Triangle Type)

Three Segments and Triangle Type

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given three positive integer segment lengths a,b,ca,b,c, print NONE if they cannot form a non-degenerate triangle. Otherwise classify the triangle by equal side lengths.

Input

One line contains positive integers a,b,ca,b,c.

Output

Print one of NONE, EQUILATERAL, ISOSCELES, SCALENE.

Subtasks

  • Subtask 1 (20 points): Lengths are in [1,10].

  • Subtask 2 (30 points): Lengths are in [1,100000].

  • Subtask 3 (50 points): Lengths are in [1,1e9].

Examples

Example 1

Input

1000000000 1000000000 1

Output

ISOSCELES

Explanation

For this input, the case-specific computation and the required exact output are shown above. All inequalities hold and exactly two sides are equal.

Example 2

Input

2 3 5

Output

NONE

Explanation

For this input, the case-specific computation and the required exact output are shown above. A degenerate triple is rejected.