import sys
S = input()

for i in range(len(S)):
    if (i%2==0 and S[i] in ["R", "U", "D"]) or (i%2!=0 and S[i] in ["L", "U", "D"]):
        continue
    else:
        print("No")
        sys.exit()
print("Yes") import sys sys S = input() S input() input for i in range(len(S)):
    if (i%2==0 and S[i] in ["R", "U", "D"]) or (i%2!=0 and S[i] in ["L", "U", "D"]):
        continue
    else:
        print("No")
        sys.exit() i range(len(S)) range len(S) len S if (i%2==0 and S[i] in ["R", "U", "D"]) or (i%2!=0 and S[i] in ["L", "U", "D"]):
        continue
    else:
        print("No")
        sys.exit() (i%2==0 and S[i] in ["R", "U", "D"]) or (i%2!=0 and S[i] in ["L", "U", "D"]) i%2==0 and S[i] in ["R", "U", "D"] i%2==0 i%2 i 2 0 S[i] in ["R", "U", "D"] S[i] S i ["R", "U", "D"] "R" "U" "D" i%2!=0 and S[i] in ["L", "U", "D"] i%2!=0 i%2 i 2 0 S[i] in ["L", "U", "D"] S[i] S i ["L", "U", "D"] "L" "U" "D" continue print("No") print "No" sys.exit() sys.exit sys exit print("Yes") print "Yes" S = input() input() S
import sys
S = input()

for i in range(len(S)):
    if (i%2==0 and S[i] in ["R", "U", "D"]) or (i%2!=0 and S[i] in ["L", "U", "D"]):
        continue
    else:
        print("No")
        sys.exit()
print("Yes")