#ABC141B
s = input()
print("Yes" if (s[::2].count("L")+s[1::2].count("R"))==0 else "No") s = input() s input() input print("Yes" if (s[::2].count("L")+s[1::2].count("R"))==0 else "No") print "Yes" if (s[::2].count("L")+s[1::2].count("R"))==0 else "No" (s[::2].count("L")+s[1::2].count("R"))==0 s[::2].count("L")+s[1::2].count("R") s[::2].count("L") [::2].count [::2] s ::2 2 count "L" s[1::2].count("R") [1::2].count [1::2] s 1::2 1 2 count "R" 0 "Yes" "No" s = input() input() s
#ABC141B
s = input()
print("Yes" if (s[::2].count("L")+s[1::2].count("R"))==0 else "No")