S = input()

Odd = ["R", "U", "D"]
Even = ["L", "U", "D"]
S_l = len(S)
result = "Yes"

for i in range(0, S_l):
    if i % 2 == 0:
        if not S[i] in Odd:
            result = "No"
            break
    if i % 2 != 0:
        if not S[i] in Even:
            result = "No"
            break

print(result) S = input() S input() input Odd = ["R", "U", "D"] Odd ["R", "U", "D"] "R" "U" "D" Even = ["L", "U", "D"] Even ["L", "U", "D"] "L" "U" "D" S_l = len(S) S_l len(S) len S result = "Yes" result "Yes" for i in range(0, S_l):
    if i % 2 == 0:
        if not S[i] in Odd:
            result = "No"
            break
    if i % 2 != 0:
        if not S[i] in Even:
            result = "No"
            break i range(0, S_l) range 0 S_l if i % 2 == 0:
        if not S[i] in Odd:
            result = "No"
            break
     i % 2 == 0 i % 2 i 2 0 if not S[i] in Odd:
            result = "No"
            break
     not S[i] in Odd S[i] in Odd S[i] S i Odd result = "No" result "No" break if i % 2 != 0:
        if not S[i] in Even:
            result = "No"
            break i % 2 != 0 i % 2 i 2 0 if not S[i] in Even:
            result = "No"
            break not S[i] in Even S[i] in Even S[i] S i Even result = "No" result "No" break print(result) print result S = input() input() S Even = ["L", "U", "D"] ["L", "U", "D"] Even result = "No" "No" result S_l = len(S) len(S) S_l Odd = ["R", "U", "D"] ["R", "U", "D"] Odd result = "Yes" "Yes" result result = "No" "No" result
S = input()

Odd = ["R", "U", "D"]
Even = ["L", "U", "D"]
S_l = len(S)
result = "Yes"

for i in range(0, S_l):
    if i % 2 == 0:
        if not S[i] in Odd:
            result = "No"
            break
    if i % 2 != 0:
        if not S[i] in Even:
            result = "No"
            break

print(result)