시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 1047 533 499 59.904%

문제

삼각형의 세 변의 길이가 주어질 때 변의 길이에 따라 다음과 같이 정의한다.

  • Equilateral :  세 변의 길이가 모두 같은 경우
  • Isosceles : 두 변의 길이만 같은 경우
  • Scalene : 세 변의 길이가 모두 다른 경우

단 주어진 세 변의 길이가 삼각형의 조건을 만족하지 못하는 경우에는 "Invalid" 를 출력한다. 예를 들어 6, 3, 2가 이 경우에 해당한다. 가장 긴 변의 길이보다 나머지 두 변의 길이의 합이 길지 않으면 삼각형의 조건을 만족하지 못한다.

세 변의 길이가 주어질 때 위 정의에 따른 결과를 출력하시오.

입력

각 줄에는 1,000을 넘지 않는 양의 정수 3개가 입력된다. 마지막 줄은 0 0 0이며 이 줄은 계산하지 않는다.

출력

각 입력에 맞는 결과 (Equilateral, Isosceles, Scalene, Invalid) 를 출력하시오.

예제 입력 1

7 7 7
6 5 4
3 2 5
6 2 6
0 0 0

예제 출력 1

Equilateral
Scalene
Invalid
Isosceles
W3sicHJvYmxlbV9pZCI6IjUwNzMiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWMwYmNcdWFjMDFcdWQ2MTVcdWFjZmMgXHVjMTM4IFx1YmNjMCIsImRlc2NyaXB0aW9uIjoiPHA+XHVjMGJjXHVhYzAxXHVkNjE1XHVjNzU4IFx1YzEzOCBcdWJjYzBcdWM3NTggXHVhZTM4XHVjNzc0XHVhYzAwIFx1YzhmY1x1YzViNFx1YzljOCBcdWI1NGMgXHViY2MwXHVjNzU4IFx1YWUzOFx1Yzc3NFx1YzVkMCBcdWI1MzBcdWI3N2MgXHViMmU0XHVjNzRjXHVhY2ZjIFx1YWMxOVx1Yzc3NCBcdWM4MTVcdWM3NThcdWQ1NWNcdWIyZTQuPFwvcD5cclxuXHJcbjx1bD5cclxuXHQ8bGk+RXF1aWxhdGVyYWwgOiAmbmJzcDtcdWMxMzggXHViY2MwXHVjNzU4IFx1YWU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