Time

12:09:56
11 Feb 2012
ACM-ICPC Thailand Southern Region Programming Contest 2011
Left: 2 hours 51 minutes
End: 11.02.2012 15:00
Leader: evgentu
Five for week 22
Left: 9 hours 51 minutes
End: 11.02.2012 22:00
Leader: NuM
Version for print

The triangle

   In Euclidean geometry, triangles can be divided into three types depending on the values of their angles. The triangle is acute if all its three angles are less than 90 degrees. The triangle is obtuse, if one of its angles is greater than 90 degrees. Finally, a triangle is right if one of its angles equals to 90 degrees.


Specifications

   Input

   Three positive integers A, B, C, separated with one space, are given in one line. They are the lengths of triangle's sides. (1 A, B, C 10000)

   Output

   One of the words must be printed:

  • "IMPOSSIBLE" – if such triangle does not exist;
  • "ACUTE" – if the triangle is acute;
  • "OBTUSE" – if the triangle is obtuse;
  • "RIGHT" – if the triangle is right.

Problem information

Time Limit: 0.1 seconds
Memory Limit: 64 MB
Balls for the passed test: 3.33333
Complexity: 17% 378/455
Classes: Geometry

Example

Example input

Sample 1
3 4 5

Sample 2
3 4 4

Sample 3
3 4 6

Sample 4
7 4 3

Example output

Sample 1
RIGHT

Sample 2
ACUTE

Sample 3
OBTUSE

Sample 4
IMPOSSIBLE


← Pairwise different distances Problems Ìîðêîâíûå ñíû →