eolymp
bolt
Try our new interface for solving problems
Problems

The triangle

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 \textbf{90} degrees. The triangle is obtuse, if one of its angles is greater than \textbf{90} degrees. Finally, a triangle is right if one of its angles equals to \textbf{90} degrees. \InputFile Three positive integers \textbf{A},\textbf{ B}, \textbf{C}, separated with one space, are given in one line. They\textbf{ }are the lengths of triangle's sides. (\textbf{1 }≤\textbf{ A, B, C }≤\textbf{ 10000}) \OutputFile One of the words must be printed: \begin{itemize} \item "\textbf{IMPOSSIBLE}" -- if such triangle does not exist; \item "\textbf{ACUTE}" -- if the triangle is acute; \item "\textbf{OBTUSE}" -- if the triangle is obtuse; \item "\textbf{RIGHT}" -- if the triangle is right. \end{itemize}
Time limit 1 second
Memory limit 122.17 MiB
Input example #1
3 4 5
Output example #1
RIGHT
Input example #2
3 4 4
Output example #2
ACUTE
Input example #3
3 4 6
Output example #3
OBTUSE
Input example #4
7 4 3
Output example #4
IMPOSSIBLE