//https://atcoder.jp/contests/abc141/submissions/7559296

var ans = "Yes"
for(i, c)in readLine()!.characters.enumerate() {
  if i % 2 == 0 && c == "L" || i % 2 > 0 && c == "R" {
    ans = "No"
  }
}
print(ans)
