/*
Problem no. : 12
Submitted by : Rafiul Sabbir
Dept. : CSE
Institution : United International University
Submitted at : 01/11/09
*/
Standardized exams often consist of many multiple choice questions. One type of multiple choice question gives two expressions and asks if the value of the expression on the left is greater than, less than, or equal to the value of the expression on the right. The answer A indicates that the value of the left expression is greater than the value of the right one, the answer B indicates that the value of the left expression is less than the value of the right one, and the answer C indicates that the two expressions are equal. Your task is to write a program that will list the correct answers for such a set of multiple choice questions.
Input:
The first line of the input is an integer n that represents the number of data collections that follow where each collection is on a single line. Each data collection represents a multiple choice question and contains three integers x, y, and z with a single space between each pair of integers. The left expression in a question is evaluated as x + y. The right expression in a question is given directly by the value z.
Output:
Your program should produce n lines of output (one for each data collection). Every line of output should contain an uppercase letter representing the correct answer of the corresponding multiple choice question. If the sum of x and y exceeds z, the answer should be A. If the sum of x and y is less than z, the answer should be B. Finally, if the sum of x and y equals z, the answer should be C.
The output is to be formatted exactly like that for the sample output given below.
Assumptions:
The value of n will be between 1 and 100, inclusive.
Each input integer will be between -1,000,000 and 1,000,000, inclusive.
Sample Input:
3
2 99 101
25 5 29
-10 7 0
Sample Output:
C
A
B