odd=["R","U","D"]
even=["L","U","D"]
S=input()
i=0
for x in range(len(S)):
  if x%2==0 and S[x] in odd:
    i+=1
  elif x%2==1 and S[x] in even:
    i+=1
if i==len(S):
  print("Yes")
else:
  print("No") odd=["R","U","D"] odd ["R","U","D"] "R" "U" "D" even=["L","U","D"] even ["L","U","D"] "L" "U" "D" S=input() S input() input i=0 i 0 for x in range(len(S)):
  if x%2==0 and S[x] in odd:
    i+=1
  elif x%2==1 and S[x] in even:
    i+=1 x range(len(S)) range len(S) len S if x%2==0 and S[x] in odd:
    i+=1
  elif x%2==1 and S[x] in even:
    i+=1 x%2==0 and S[x] in odd x%2==0 x%2 x 2 0 S[x] in odd S[x] S x odd i+=1 i 1 elif x%2==1 and S[x] in even:
    i+=1 x%2==1 and S[x] in even x%2==1 x%2 x 2 1 S[x] in even S[x] S x even i+=1 i 1 if i==len(S):
  print("Yes")
else:
  print("No") i==len(S) i len(S) len S print("Yes") print "Yes" print("No") print "No" i+=1 1 i i+=1 1 i i=0 0 i S=input() input() S odd=["R","U","D"] ["R","U","D"] odd even=["L","U","D"] ["L","U","D"] even
odd=["R","U","D"]
even=["L","U","D"]
S=input()
i=0
for x in range(len(S)):
  if x%2==0 and S[x] in odd:
    i+=1
  elif x%2==1 and S[x] in even:
    i+=1
if i==len(S):
  print("Yes")
else:
  print("No")