#P34. [KBC002A] Sequence 2

[KBC002A] Sequence 2

Source

This problem is adapted from Long Long OJ. All rights reserved.

Description

You have NN sequences and the length of the ii-th sequence is LiL_i.

You're going to operate on these NN sequences:

  • If the length of the ii-th sequence is less than the 20%20\% of the sum of the lengths of all sequences, the ii-th sequence consists letters A.
  • Otherwise, the ii-th sequence consists letters B.

Print all the sequences after the operation.

Input

The first line consists of an integer NN.

Then NN lines follow. The ii-th line of them consists of an integer LiL_i.

Output

Print all the sequences after the operation.

Samples

5
1
2
3
4
5
A
AA
BBB
BBBB
BBBBB

Tips

  • 1N100.1\leq N\leq 100.
  • 1Li100.1\leq L_i\leq 100.