An engineering firm, "Gears R Us," needs a program that evaluates how gears turn on a board. The board is a two-dimensional mounting plane. Every gear has two levels of teeth: an inner level (the ring closest to the board, of radius $ir$) and an outer level (the ring farther from the board, of radius $or$). A gear rotates about the center of its axle, and both of its levels always share the same angular velocity.
Two gears interact only when a ring of one gear exactly touches a ring of the other at the same level -- inner touches inner, or outer touches outer. Where they touch, the two rings have equal tangential velocity, so the driven gear turns in the opposite direction to the gear driving it. Because tangential velocity $v = \omega r$ is shared at the contact point, a gear spinning at angular velocity $\omega_A$ through a ring of radius $r_A$ drives a ring of radius $r_B$ at angular velocity $\omega_B = \omega_A \cdot r_A / r_B$.
Boards are square, with a $300 \times 300$ grid of mounting holes on 1 cm centers. The lower-left hole is $x = 1, y = 1$ and the upper-right hole is $x = 300, y = 300$. Gears mount only on holes, and each radius is an integer from 1 to 100. The motor is the only source of power on a board; it is powered from behind the board but is otherwise an ordinary gear subject to every rule above.

Your program must also detect two error conditions. An overlap error occurs when two or more gears would overlap at their inner rings or at their outer rings (touching exactly is allowed; overlapping is not). A conflict error occurs when some gear is driven at two or more different speeds or directions -- it is perfectly valid, though, for several gears to drive one gear at the same speed and in the same direction. If both errors are present, report the overlap error.
A gear that is not connected to the motor never turns (rotation $0.00$); report this as an idle-gear warning.
The input contains an undetermined number of configurations, one after another, until end of file.
Each configuration begins with a line of six integers:
Each of the next $NG$ lines describes one gear, gear 1 through gear $NG$ in order, with four integers: $x\ y$ (its coordinates, $1 \le x, y \le 300$) and $ir\ or$ (its inner and outer radii, $1 \le ir, or \le 100$).
For each configuration, print a result block.
The first line is Simulation #X, where X is the configuration number starting from 1 (the number begins in column 13, immediately after Simulation #).
If there is no error, print one line for each gear, gear 1 through gear $NG$:
: in column 3;L if the gear turns counter-clockwise or R if it turns clockwise;If a gear's rotation magnitude is zero, print Warning -- Idle Gear starting in column 5 instead of the direction and magnitude.
If there is an error, print only the Simulation #X line followed by exactly one error message, starting in column 1: Error -- Overlapping Gears for an overlap, or Error -- Conflicting Gear Rotation for a conflict. The overlap error takes precedence.
Print one blank line after each configuration's block.