open System

let s = Console.ReadLine().ToCharArray() |> Array.toList

let ziped = [1..s.Length] |> List.zip <| s

let odd s =
    match s with
    |'R'|'U'|'D' -> true
    | _ -> false

let even s =
    match s with
    |'L'|'U'|'D' -> true
    |_ -> false

let rec move list =
    match list with
    | [] -> "Yes"
    | head :: tail ->
        let a,b = head 
        match a % 2 with
            | 0 -> if even b then move tail else "No"
            | _ -> if odd b then move tail else "No"

ziped |> move |> printfn "%s"  