import sys
s=list(input())

if "L" not in s[::2] and "R" not in s[1::2]:
  print("Yes")
else:
  print("No")
 import sys sys s=list(input()) s list(input()) list input() input if "L" not in s[::2] and "R" not in s[1::2]:
  print("Yes")
else:
  print("No") "L" not in s[::2] and "R" not in s[1::2] "L" not in s[::2] "L" s[::2] s ::2 2 "R" not in s[1::2] "R" s[1::2] s 1::2 1 2 print("Yes") print "Yes" print("No") print "No" s=list(input()) list(input()) s
import sys
s=list(input())

if "L" not in s[::2] and "R" not in s[1::2]:
  print("Yes")
else:
  print("No")

