Plasmatic is having a test on the different types of triangles! However, he is unable to answer any questions because he was playing video games in online classes. He vaguely remembers that the teacher taught types of triangles – acute, right and obtuse, but he doesn't remember how to identify any of them. He doesn't want to fail the test, so he needs your help to write a program to solve his problems.
The first line contains , the number of questions.
Each of the following lines contains , the side lengths of the triangle. It is guaranteed that the three side lengths form a valid non-degenerate triangle with integer side lengths.
For tests worth of the score, there will be no acute triangles.
For each of the questions, output
A if the triangle formed is acute,
R if the triangle formed is right, or
O if the triangle formed is obtuse.
Sample Input 1
2 5 12 13 5 11 13
Sample Output 1
Sample Input 2
3 2 3 4 2 2 2 3 4 5
Sample Output 2
O A R