import sys

s = input()

for c in s[::2]:
    if(c == 'L'):
        print("No")
        sys.exit()

for c in s[1::2]:
    if(c == 'R'):
        print("No")
        sys.exit()

print("Yes") import sys sys s = input() s input() input for c in s[::2]:
    if(c == 'L'):
        print("No")
        sys.exit() c s[::2] s ::2 2 if(c == 'L'):
        print("No")
        sys.exit() c == 'L' c 'L' print("No") print "No" sys.exit() sys.exit sys exit for c in s[1::2]:
    if(c == 'R'):
        print("No")
        sys.exit() c s[1::2] s 1::2 1 2 if(c == 'R'):
        print("No")
        sys.exit() c == 'R' c 'R' print("No") print "No" sys.exit() sys.exit sys exit print("Yes") print "Yes" s = input() input() s
import sys

s = input()

for c in s[::2]:
    if(c == 'L'):
        print("No")
        sys.exit()

for c in s[1::2]:
    if(c == 'R'):
        print("No")
        sys.exit()

print("Yes")