Problem G: CCC19J1 WinningScore

Problem G: CCC19J1 WinningScore

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 110  Solved: 54
[Submit] [Status] [Web Board] [Creator:]

Description

English:
You record all of the scoring activity at a basketball game. Points are scored by a 3-point shot, a 2-point field goal, or a 1-point free throw.  
You know the number of each of these types of scoring for the two teams: the Apples and the Bananas. 
Your job is to determine which team won, or if the game ended in a tie. 


Chinese
Apple队 和 Banana 队,进行蓝球比赛。篮球比赛 有3分球  2分球 1分球
写一个程序,算出哪个队赢了。



Input

The first three lines of input describe the scoring of the Apples, and the next three lines of input describe the scoring of the Bananas. 
For each team, the first line contains the number of successful 3-point shots, the second line contains the number of successful 2-point field goals
and the third line contains the number of successful 1-point free throws. Each number will be an integer between 0 and 100, inclusive.  

会输入两个队的3分球的数量  2分球的数量  1分球的数量

10      a队3分球数量
3       a队2分球数量
7       a队1分球数量
8       b队3分球数量
9       b队2分球数量
6       b队1分球数量


Output

The output will be a single character. 
If the Apples scored more points than the Bananas, output A
If the Bananas scored more points than the Apples, output B
Otherwise, output T, to indicate a tie 

算出哪个队赢了。如果Apple队赢了就输出A,如果Banana队赢了就输出B。如果平局就输出T

Sample Input Copy

10
3
7
8
9
6

Sample Output Copy

B