Ishigami really dislikes 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. Output a grid that minimizes 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 small 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.
The first test case contains only girls, and the second contains only boys. The number of meetings is in both cases.
The boys occupy a square in the upper-left corner. There are two meetings along its right side and two along its bottom side, for a total of , which is the minimum possible.
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 .
In the first test case, the boys occupy the first two rows. Meetings occur only between the second and third rows, giving meetings.
In the second test case, the boys occupy the first row, also giving meetings. Placing the boys in a square in the upper-left corner would give the same number. The displayed arrangements are optimal in both test cases.