defmodule Main do def input, do: IO.read(:line) |> String.trim def ii, do: input() |> String.to_integer def li, do: input() |> String.split |> Enum.map(&String.to_integer/1) def yn(b), do: IO.puts(if b, do: "Yes", else: "No") def main do m = ii() for _ <- 1..m do a = ii() ans = solve(a+1) IO.puts ans end end def solve(1), do: "" def solve(a) do c = case rem(a, 2) do 0 -> "L" 1 -> "R" end [c | solve(div(a, 2))] end end