import sys
s = list(input())

i = 0
for e in s:
    if i % 2 == 0 and e == 'L':
        print('No')
        sys.exit()
    elif i % 2 == 1 and e == 'R':
        print('No')
        sys.exit()
    i += 1

print('Yes') import sys sys s = list(input()) s list(input()) list input() input i = 0 i 0 for e in s:
    if i % 2 == 0 and e == 'L':
        print('No')
        sys.exit()
    elif i % 2 == 1 and e == 'R':
        print('No')
        sys.exit()
    i += 1 e s if i % 2 == 0 and e == 'L':
        print('No')
        sys.exit()
    elif i % 2 == 1 and e == 'R':
        print('No')
        sys.exit()
     i % 2 == 0 and e == 'L' i % 2 == 0 i % 2 i 2 0 e == 'L' e 'L' print('No') print 'No' sys.exit() sys.exit sys exit elif i % 2 == 1 and e == 'R':
        print('No')
        sys.exit()
     i % 2 == 1 and e == 'R' i % 2 == 1 i % 2 i 2 1 e == 'R' e 'R' print('No') print 'No' sys.exit() sys.exit sys exit i += 1 i 1 print('Yes') print 'Yes' s = list(input()) list(input()) s i += 1 1 i i = 0 0 i
import sys
s = list(input())

i = 0
for e in s:
    if i % 2 == 0 and e == 'L':
        print('No')
        sys.exit()
    elif i % 2 == 1 and e == 'R':
        print('No')
        sys.exit()
    i += 1

print('Yes')
