const chunks = [];
process.stdin.on("data", chunk => {
  chunks.push(chunk);
});
process.stdin.on("end", () => {
  const body = Buffer.concat(chunks).toString("utf8");
  main(body.trim());
});

function main(data) {
  for (let i = 0; i < data.length; i++) {
    const c = data.charAt(i);
    if (i % 2 == 0) {
      // Odd
      if (c === "L") {
        console.log("No");
        return;
      }
    } else {
      // Even
      if (c === "R") {
        console.log("No");
        return;
      }
    }
  }
  console.log("Yes");
}
