function Main(input) {
    var S  = input;
    var ch = "Yes";
    for(var i = 1; i < S.length; i++){
        if(i % 2 == 0){
            if(S[i-1] != "L" && S[i-1] != "U" && S[i-1] != "D"){
                ch = "No";
            }
        }else{
            if(S[i-1] != "R" && S[i-1] != "U" && S[i-1] != "D"){
                ch = "No";
            }
        }
    }
    console.log(ch)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));