After counting patterns on his
Bob thinks a rectangle of pixels, with both dimensions at least
Please help Bob colour the
Constraints
Subtask 1 [10%]
Subtask 2 [10%]
Subtask 3 [20%]
Subtask 4 [30%]
Subtask 5 [30%]
No additional constraints.
Input Specification
The first and only line contains two space-separated integers,
Output Specification
Output an Y
for yellow and B
for black—representing a colouring that contains a minimal number of ugly sub-rectangles. If there are multiple such colourings possible, you may output any one of them.
Sample Input
3 3
Sample Output
YBB
BYB
BBY
Comments