[<EntryPoint>]
let main argv =
    //printfn "Gokigenyou!" 
    let cs = System.Console.ReadLine().ToCharArray()
    let odd =
        [0 .. 2 .. cs.Length-1]
        |> List.map (fun i -> cs.[i])
    let even =
        [1 .. 2 .. cs.Length-1]
        |> List.map (fun i -> cs.[i])
    let ans = if (odd |> List.contains 'L') || (even |> List.contains 'R') then "No" else "Yes" 
    System.Console.WriteLine(ans)
    0
