시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 256 MB 2396 1328 1218 57.022%

문제

창영이는 삼각형의 종류를 잘 구분하지 못한다. 따라서 프로그램을 이용해 이를 외우려고 한다.

삼각형의 세 각을 입력받은 다음, 

  • 세 각의 크기가 모두 60이면, Equilateral
  • 세 각의 합이 180이고, 두 각이 같은 경우에는 Isosceles
  • 세 각의 합이 180이고, 같은 각이 없는 경우에는 Scalene
  • 세 각의 합이 180이 아닌 경우에는 Error

를 출력하는 프로그램을 작성하시오.

입력

총 3개의 줄에 걸쳐 삼각형의 각의 크기가 주어진다. 모든 정수는 0보다 크고, 180보다 작다.

출력

문제의 설명에 따라 Equilateral, Isosceles, Scalene, Error 중 하나를 출력한다.

예제 입력 1

60
70
50

예제 출력 1

Scalene
W3sicHJvYmxlbV9pZCI6IjEwMTAxIiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVjMGJjXHVhYzAxXHVkNjE1IFx1YzY3OFx1YzZiMFx1YWUzMCIsImRlc2NyaXB0aW9uIjoiPHA+XHVjYzNkXHVjNjAxXHVjNzc0XHViMjk0IFx1YzBiY1x1YWMwMVx1ZDYxNVx1Yzc1OCBcdWM4ODVcdWI5NThcdWI5N2MgXHVjNzk4IFx1YWQ2Y1x1YmQ4NFx1ZDU1OFx1YzljMCBcdWJhYmJcdWQ1NWNcdWIyZTQuIFx1YjUzMFx1Yjc3Y1x1YzExYyBcdWQ1MDRcdWI4NWNcdWFkZjhcdWI3YThcdWM3NDQgXHVjNzc0XHVjNmE5XHVkNTc0IFx1Yzc3NFx1Yjk3YyBcdWM2NzhcdWM2YjBcdWI4MjRcdWFjZTAgXHVkNTVjXHViMmU0LjxcL3A+XHJcblxyXG48cD5cdWMwYmNcdWFjMDFcdWQ2MTVcdWM3NTggXHVjMTM4IFx1YWMwMVx1Yzc0NCBcdWM3ODVcdWI4MjVcdWJjMWJcdWM3NDAgXHViMmU0XHVjNzRjLCZuYnNwOzxcL3A+XHJc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