PROGRAMMING:Who's going to pour it first
Rowing is an interesting part of ancient Chinese wine culture. The way for two people to row on the wine table is to shout out a number from each population and draw out a number with their hands at the same time. If the number drawn is exactly equal to the sum of the two people's numbers, the loser will lose and be punished with a glass of wine. If two people win or lose at the same time, the next round will continue until the only winner appears.
The following is a, B two people's drinking capacity (how many glasses can drink at most) and stroke record, please judge two people who pour first.
###Input format:
Input the first line to give the amount of alcohol (not more than 100 non negative integers) of a and B, separated by spaces. The next line gives a positive integer 'n' ($$$Le 100 $$), and the next 'n' line gives the record of a round of stroke. The format is:
```
A shouts a row, B shouts B row
```
Among them, the number of shouts is the number of shouts, and the number of strokes is the number of strokes, which are all positive integers not exceeding 100 (two hands stroke together).
###Output format:
In the first line, output the person who fell first: ` a 'stands for a and ` B' stands for B. The second line says how many drinks the person who didn't drink. The title guarantees that one person will fall. Note that the program stops when someone falls down, and the following data does not have to be processed.
###Input example:
```in
1 1
six
8 10 9 12
5 10 5 10
3 8 5 12
12 18 1 13
4 16 12 15
15 1 1 16
```
###Output example:
```out
A
one
```
answer:If there is no answer, please comment
The following is a, B two people's drinking capacity (how many glasses can drink at most) and stroke record, please judge two people who pour first.
###Input format:
Input the first line to give the amount of alcohol (not more than 100 non negative integers) of a and B, separated by spaces. The next line gives a positive integer 'n' ($$$Le 100 $$), and the next 'n' line gives the record of a round of stroke. The format is:
```
A shouts a row, B shouts B row
```
Among them, the number of shouts is the number of shouts, and the number of strokes is the number of strokes, which are all positive integers not exceeding 100 (two hands stroke together).
###Output format:
In the first line, output the person who fell first: ` a 'stands for a and ` B' stands for B. The second line says how many drinks the person who didn't drink. The title guarantees that one person will fall. Note that the program stops when someone falls down, and the following data does not have to be processed.
###Input example:
```in
1 1
six
8 10 9 12
5 10 5 10
3 8 5 12
12 18 1 13
4 16 12 15
15 1 1 16
```
###Output example:
```out
A
one
```
answer:If there is no answer, please comment