s = input()

s = list(s)
answer = True
for i in range(len(s)):
  if i%2 == 0:
    if(s[i] == "L"):
      answer = False
      break
  else:
    if(s[i] == "R"):
      answer = False

if answer :
  print("Yes")
else :
  print("No") s = input() s input() input s = list(s) s list(s) list s answer = True answer True for i in range(len(s)):
  if i%2 == 0:
    if(s[i] == "L"):
      answer = False
      break
  else:
    if(s[i] == "R"):
      answer = False i range(len(s)) range len(s) len s if i%2 == 0:
    if(s[i] == "L"):
      answer = False
      break
  else:
    if(s[i] == "R"):
      answer = False i%2 == 0 i%2 i 2 0 if(s[i] == "L"):
      answer = False
      break
   s[i] == "L" s[i] s i "L" answer = False answer False break if(s[i] == "R"):
      answer = False s[i] == "R" s[i] s i "R" answer = False answer False if answer :
  print("Yes")
else :
  print("No") answer print("Yes") print "Yes" print("No") print "No" s = list(s) list(s) s s = input() input() s answer = False False answer answer = True True answer answer = False False answer
s = input()

s = list(s)
answer = True
for i in range(len(s)):
  if i%2 == 0:
    if(s[i] == "L"):
      answer = False
      break
  else:
    if(s[i] == "R"):
      answer = False

if answer :
  print("Yes")
else :
  print("No")