Odd = ["R","U","D"]
Even = ["L","U","D"]
match = 0

S = input()

for i in range(len(S)):
    if (i+1) % 2 == 0 and S[i] in Even:
        match += 1
    elif (i+1) % 2 == 1 and S[i] in Odd:
        match += 1

if match == len(S):
    print("Yes")
else:
    print("No") Odd = ["R","U","D"] Odd ["R","U","D"] "R" "U" "D" Even = ["L","U","D"] Even ["L","U","D"] "L" "U" "D" match = 0 match 0 S = input() S input() input for i in range(len(S)):
    if (i+1) % 2 == 0 and S[i] in Even:
        match += 1
    elif (i+1) % 2 == 1 and S[i] in Odd:
        match += 1 i range(len(S)) range len(S) len S if (i+1) % 2 == 0 and S[i] in Even:
        match += 1
    elif (i+1) % 2 == 1 and S[i] in Odd:
        match += 1 (i+1) % 2 == 0 and S[i] in Even (i+1) % 2 == 0 (i+1) % 2 i+1 i 1 2 0 S[i] in Even S[i] S i Even match += 1 match 1 elif (i+1) % 2 == 1 and S[i] in Odd:
        match += 1 (i+1) % 2 == 1 and S[i] in Odd (i+1) % 2 == 1 (i+1) % 2 i+1 i 1 2 1 S[i] in Odd S[i] S i Odd match += 1 match 1 if match == len(S):
    print("Yes")
else:
    print("No") match == len(S) match len(S) len S print("Yes") print "Yes" print("No") print "No" match = 0 0 match S = input() input() S Odd = ["R","U","D"] ["R","U","D"] Odd Even = ["L","U","D"] ["L","U","D"] Even match += 1 1 match match += 1 1 match
Odd = ["R","U","D"]
Even = ["L","U","D"]
match = 0

S = input()

for i in range(len(S)):
    if (i+1) % 2 == 0 and S[i] in Even:
        match += 1
    elif (i+1) % 2 == 1 and S[i] in Odd:
        match += 1

if match == len(S):
    print("Yes")
else:
    print("No")