s = input()
print(["Yes", "No"]["L" in s[::2] or "R" in s[1::2]]) s = input() s input() input print(["Yes", "No"]["L" in s[::2] or "R" in s[1::2]]) print ["Yes", "No"]["L" in s[::2] or "R" in s[1::2]] ["Yes", "No"] "Yes" "No" "L" in s[::2] or "R" in s[1::2] "L" in s[::2] "L" s[::2] s ::2 2 "R" in s[1::2] "R" s[1::2] s 1::2 1 2 s = input() input() s
s = input()
print(["Yes", "No"]["L" in s[::2] or "R" in s[1::2]])