Fujiwara really likes couples.
There are boys and girls to place in an grid. It is guaranteed that , and exactly one student must be placed in each cell.
Two students meet if they have different genders and their cells share an edge. The number of meetings is the number of such pairs of cells. Count each pair once; cells that share only a corner do not count.
Represent a boy by B and a girl by G, and output a grid that maximizes the number of meetings.
The input is given in the following format.
For each test case, output the arrangement in lines. Each line must be a string of length containing only B and G. Each character represents the gender of the student placed in that cell.
The grid must contain exactly occurrences of B and occurrences of G. The number of meetings must be as large as possible. If there are multiple optimal arrangements, output any of them.
Output the grids in the order the test cases appear in the input, without separators or blank lines between them.
There are only girls, so the number of meetings is .
In the first test case, the only boy occupies the center cell and meets the girls immediately above, below, to the left, and to the right, giving meetings.
In the second test case, each of the three boys meets three girls, giving meetings. The displayed arrangements are optimal in both cases.
The first arrangement has meetings, and the second has . These are the maximum possible values for their respective test cases.
The first line contains the number of test cases . Each test case is given in the following format.
Each test case consists of one line containing the grid size , the number of boys , and the number of girls .