Problems
Two proud integers,
The number with the smaller units digit decreases by
2 , and the number with the larger units digit decreases by19 . (If they are the same, both are replaced by the quotient when divided by10 .)The fight ends if one of the two integers becomes less than or equal to 0.
After the fight ends, the integer with the larger value wins.
Input
The first line contains two integers
Output
On the first line, print A if integer
Example #1
987 5187
B
Example #2
193 23
D
Example #3
380 4003
A
Tag