#P33. [KBC002A] Sequence 2

[KBC002A] Sequence 2

Source

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

Problem 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\tt A.
  • Otherwise, the ii-th sequence consists letters B\tt B.

Print all the sequences after the operation.

Input Format

The first line consists of an integer N (1N100)N\ (1 \le N \le 100).

Then NN lines follow.

The ii-th line of them consists of an integer Li (1Li100)L_i\ (1 \le L_i \le 100).

Output Format

Print all the sequences after the operation.

Samples

5
1
2
3
4
5
A
AA
BBB
BBBB
BBBBB