G. Ghostly Geometry
time limit per test
4 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output

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:

Red and blue triangles bring you trouble,

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!

Input

The input consists of:

  • One line with two integers $$$n$$$ and $$$m$$$ ($$$1 \leq n \leq 10^5$$$, $$$0 \leq m \leq 3 \cdot 10^5$$$), the number of points and the number of line segments.
  • $$$n$$$ lines, each with two integers $$$x_i$$$ and $$$y_i$$$ ($$$|x_i|, |y_i| \leq 10^9$$$), the coordinates of the $$$i$$$-th point.
  • $$$m$$$ lines, each with two integers $$$a$$$ and $$$b$$$ ($$$1 \leq a, b \leq n$$$, $$$a \neq b$$$), describing a straight line segment connecting the $$$a$$$-th and $$$b$$$-th point.
No two points have the same coordinates, and two line segments may only intersect at their endpoints. In particular, no two points $$$a$$$ and $$$b$$$ are connected by more than one line segment.
Output

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"

Example
Input
4 5
0 0
0 1
-1 0
1 0
1 2
1 3
1 4
2 3
2 4
Output
BRRRR
Note

Visualization of the sample output:

Note that there is no red triangle because a triangle consists of three points. Here, we only have a quadrilateral with an angle of 180°.