시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 856 433 414 61.062%

문제

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

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

단 주어진 세 변의 길이가 삼각형의 조건을 만족하지 못하는 경우에는 "Invalid" 를 출력한다. 예를 들어 6, 3, 2 가 주어지면 가장 긴 변인 6 은 다른 두 변의 합보다 크기 때문에 삼각형의 조건을 만족하지 못한다.

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

입력

각 줄은 1000 을 넘지 않는 양의 정수 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+RXF1aWxhdGVyYWwgOiAmbmJzcDtcdWMxMzggXHViY2MwXHVjNzU4IFx1YWUzOFx1Yzc3NFx1YWMwMCBcdW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