import sys
list=input()
def split(a): 
    return [char for char in a]
list=split(list)
even_count=0
odd_count=0
for i in list:
  if even_count%2==0:
      even_count+=1
      continue
  if list[even_count]=="R":
    print("No")
    sys.exit()
  even_count+=1
for i in list:
  if odd_count%2==1:
      odd_count+=1
      continue
  if list[odd_count]=="L":
    print("No")
    sys.exit()
  odd_count+=1
print("Yes") import sys sys list=input() list input() input def split(a): 
    return [char for char in a] split char for char in a for char in a char a for char in a char return [char for char in a] [char for char in a] a a list=split(list) list split(list) split list even_count=0 even_count 0 odd_count=0 odd_count 0 for i in list:
  if even_count%2==0:
      even_count+=1
      continue
  if list[even_count]=="R":
    print("No")
    sys.exit()
  even_count+=1 i list if even_count%2==0:
      even_count+=1
      continue
   even_count%2==0 even_count%2 even_count 2 0 even_count+=1 even_count 1 continue if list[even_count]=="R":
    print("No")
    sys.exit()
   list[even_count]=="R" list[even_count] list even_count "R" print("No") print "No" sys.exit() sys.exit sys exit even_count+=1 even_count 1 for i in list:
  if odd_count%2==1:
      odd_count+=1
      continue
  if list[odd_count]=="L":
    print("No")
    sys.exit()
  odd_count+=1 i list if odd_count%2==1:
      odd_count+=1
      continue
   odd_count%2==1 odd_count%2 odd_count 2 1 odd_count+=1 odd_count 1 continue if list[odd_count]=="L":
    print("No")
    sys.exit()
   list[odd_count]=="L" list[odd_count] list odd_count "L" print("No") print "No" sys.exit() sys.exit sys exit odd_count+=1 odd_count 1 print("Yes") print "Yes" odd_count+=1 1 odd_count def split(a): 
    return [char for char in a] def split(a): 
    return [char for char in a] split even_count+=1 1 even_count even_count=0 0 even_count list=input() input() list even_count+=1 1 even_count odd_count+=1 1 odd_count list=split(list) split(list) list odd_count=0 0 odd_count
import sys
list=input()
def split(a): 
    return [char for char in a]
list=split(list)
even_count=0
odd_count=0
for i in list:
  if even_count%2==0:
      even_count+=1
      continue
  if list[even_count]=="R":
    print("No")
    sys.exit()
  even_count+=1
for i in list:
  if odd_count%2==1:
      odd_count+=1
      continue
  if list[odd_count]=="L":
    print("No")
    sys.exit()
  odd_count+=1
print("Yes")