S = input()

flug = True
for i, value in enumerate(S):
    if i % 2 == 0:
        if value == 'L':
            flug = False
    else:
        if value == 'R':
            flug = False
if flug:
    print("Yes")
else:
    print("No") S = input() S input() input flug = True flug True for i, value in enumerate(S):
    if i % 2 == 0:
        if value == 'L':
            flug = False
    else:
        if value == 'R':
            flug = False i value enumerate(S) enumerate S if i % 2 == 0:
        if value == 'L':
            flug = False
    else:
        if value == 'R':
            flug = False i % 2 == 0 i % 2 i 2 0 if value == 'L':
            flug = False
     value == 'L' value 'L' flug = False flug False if value == 'R':
            flug = False value == 'R' value 'R' flug = False flug False if flug:
    print("Yes")
else:
    print("No") flug print("Yes") print "Yes" print("No") print "No" flug = False False flug S = input() input() S flug = True True flug flug = False False flug
S = input()

flug = True
for i, value in enumerate(S):
    if i % 2 == 0:
        if value == 'L':
            flug = False
    else:
        if value == 'R':
            flug = False
if flug:
    print("Yes")
else:
    print("No")