from sys import stdin,stdout
def INPUT():return list(int(i) for i in stdin.readline().split())
def inp():return stdin.readline()
def out(x):return stdout.write(x)
import math
###############################################################################\
s=input()
bool=True
for i in range(len(s)):
    if i%2==0:
        if s[i]=="R" or s[i]=="U" or s[i]=="D":
            continue
        else:
            bool=False
            break
    else:
        if s[i]=="L" or s[i]=="U" or s[i]=="D":
            continue
        else:
            bool=False
            break

if bool is True:
    print("Yes")
else:
    print("No") from sys import stdin,stdout def INPUT():return list(int(i) for i in stdin.readline().split()) INPUT def inp():return stdin.readline() inp def out(x):return stdout.write(x) out x x import math math s=input() s input() input bool=True bool True for i in range(len(s)):
    if i%2==0:
        if s[i]=="R" or s[i]=="U" or s[i]=="D":
            continue
        else:
            bool=False
            break
    else:
        if s[i]=="L" or s[i]=="U" or s[i]=="D":
            continue
        else:
            bool=False
            break i range(len(s)) range len(s) len s if i%2==0:
        if s[i]=="R" or s[i]=="U" or s[i]=="D":
            continue
        else:
            bool=False
            break
    else:
        if s[i]=="L" or s[i]=="U" or s[i]=="D":
            continue
        else:
            bool=False
            break i%2==0 i%2 i 2 0 if s[i]=="R" or s[i]=="U" or s[i]=="D":
            continue
        else:
            bool=False
            break
     s[i]=="R" or s[i]=="U" or s[i]=="D" s[i]=="R" or s[i]=="U" s[i]=="R" s[i] s i "R" s[i]=="U" s[i] s i "U" s[i]=="D" s[i] s i "D" continue bool=False bool False break if s[i]=="L" or s[i]=="U" or s[i]=="D":
            continue
        else:
            bool=False
            break s[i]=="L" or s[i]=="U" or s[i]=="D" s[i]=="L" or s[i]=="U" s[i]=="L" s[i] s i "L" s[i]=="U" s[i] s i "U" s[i]=="D" s[i] s i "D" continue bool=False bool False break if bool is True:
    print("Yes")
else:
    print("No") bool is True bool True print("Yes") print "Yes" print("No") print "No" def inp():return stdin.readline() def inp():return stdin.readline() inp bool=True True bool bool=False False bool def out(x):return stdout.write(x) def out(x):return stdout.write(x) out def INPUT():return list(int(i) for i in stdin.readline().split()) def INPUT():return list(int(i) for i in stdin.readline().split()) INPUT s=input() input() s bool=False False bool
from sys import stdin,stdout
def INPUT():return list(int(i) for i in stdin.readline().split())
def inp():return stdin.readline()
def out(x):return stdout.write(x)
import math
###############################################################################\
s=input()
bool=True
for i in range(len(s)):
    if i%2==0:
        if s[i]=="R" or s[i]=="U" or s[i]=="D":
            continue
        else:
            bool=False
            break
    else:
        if s[i]=="L" or s[i]=="U" or s[i]=="D":
            continue
        else:
            bool=False
            break

if bool is True:
    print("Yes")
else:
    print("No")
