from sys import exit

S = input()
odd = set(['L','U','D'])
even = set(['R','U','D'])

for i in range(len(S)):
    if i%2 == 0:
        if S[i] not in even:
            print("No")
            exit(0)
    else:
        if S[i] not in odd:
            print("No")
            exit(0)

print("Yes") from sys import exit S = input() S input() input odd = set(['L','U','D']) odd set(['L','U','D']) set ['L','U','D'] 'L' 'U' 'D' even = set(['R','U','D']) even set(['R','U','D']) set ['R','U','D'] 'R' 'U' 'D' for i in range(len(S)):
    if i%2 == 0:
        if S[i] not in even:
            print("No")
            exit(0)
    else:
        if S[i] not in odd:
            print("No")
            exit(0) i range(len(S)) range len(S) len S if i%2 == 0:
        if S[i] not in even:
            print("No")
            exit(0)
    else:
        if S[i] not in odd:
            print("No")
            exit(0) i%2 == 0 i%2 i 2 0 if S[i] not in even:
            print("No")
            exit(0)
     S[i] not in even S[i] S i even print("No") print "No" exit(0) exit 0 if S[i] not in odd:
            print("No")
            exit(0) S[i] not in odd S[i] S i odd print("No") print "No" exit(0) exit 0 print("Yes") print "Yes" odd = set(['L','U','D']) set(['L','U','D']) odd even = set(['R','U','D']) set(['R','U','D']) even S = input() input() S
from sys import exit

S = input()
odd = set(['L','U','D'])
even = set(['R','U','D'])

for i in range(len(S)):
    if i%2 == 0:
        if S[i] not in even:
            print("No")
            exit(0)
    else:
        if S[i] not in odd:
            print("No")
            exit(0)

print("Yes")