s=input()
n=len(s)
odd=[s[i] for i in range(0,n,2)]
even=[s[i] for i in range(1,n,2)]
if "L" in odd:
  print("No")
elif "R" in even:
  print("No")
else:
  print("Yes") s=input() s input() input n=len(s) n len(s) len s s[i] for i in range(0,n,2) for i in range(0,n,2) i range(0,n,2) range 0 n 2 for i in range(0,n,2) s[i] s i odd=[s[i] for i in range(0,n,2)] odd [s[i] for i in range(0,n,2)] s[i] for i in range(1,n,2) for i in range(1,n,2) i range(1,n,2) range 1 n 2 for i in range(1,n,2) s[i] s i even=[s[i] for i in range(1,n,2)] even [s[i] for i in range(1,n,2)] if "L" in odd:
  print("No")
elif "R" in even:
  print("No")
else:
  print("Yes") "L" in odd "L" odd print("No") print "No" elif "R" in even:
  print("No") "R" in even "R" even print("No") print "No" print("Yes") print "Yes" s=input() input() s even=[s[i] for i in range(1,n,2)] [s[i] for i in range(1,n,2)] even odd=[s[i] for i in range(0,n,2)] [s[i] for i in range(0,n,2)] odd n=len(s) len(s) n
s=input()
n=len(s)
odd=[s[i] for i in range(0,n,2)]
even=[s[i] for i in range(1,n,2)]
if "L" in odd:
  print("No")
elif "R" in even:
  print("No")
else:
  print("Yes")