#R1017. [KBC002A] Sequence 2
[KBC002A] Sequence 2
Problem Statement
You have sequences and the length of the -th sequence is .
You're going to operate on these sequences:
- If the length of the -th sequence is less than the of the sum of the lengths of all sequences, the -th sequence consists letters
A
. - Otherwise, the -th sequence consists letters
B
.
Print all the sequences after the operation.
Constraints
Input
The input is given from Standard Input in the following format:
Output
Print all the sequences after the operation.
Sample Input 1
5
1
2
3
4
5
Sample Output 1
A
AA
BBB
BBBB
BBBBB