In many stories related to ghosts and supernatural rituals, it is common to draw certain symbols, e.g. a pentagram on the floor to summon or trap some supernatural being. Often, those drawings are made using white chalk. However, this is very unrealistic! As everyone knows, those magic drawings only work if they are made using red and blue colors – and you also have to draw them on a whiteboard instead of using chalk.
Somehow, you received a copy of the book "The $$$998244353$$$ most useful ghosts and how to summon them". One of the pages describes a ghost which can magically double your codeforces rating. The page contains a drawing consisting of $$$n$$$ points and $$$m$$$ line segments, each connecting two of the points. Furthermore, you also notice that two line segments can only intersect at their endpoints. But it is not as easy as copying the drawing on your whiteboard: Since you received a black-and-white print version of the book, you still have to figure out the colors of the $$$m$$$ line segments! Luckily, the book contains the hint:
if there is none, your rating will double!
Thus, you want to color the line segments either red or blue such that there is no triangle whose edges all have the same color. Note that a triangle consists of exactly 3 points such that each pair is connected by one of the $$$m$$$ line segments. In particular, a quadrilateral containing a 180° angle is not a triangle!
The input consists of:
If it is possible to color the line segments in red and blue such that there is no triangle whose edges all have the same color, then output a string of length $$$m$$$ consisting of letters R and B describing the colors of the line segments. Otherwise, output "hoax"
4 50 00 1-1 01 01 21 31 42 32 4
BRRRR
Visualization of the sample output: