import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()
    
    odd = {'R', 'U', 'D'}
    even = {'L', 'U', 'D'}
    
    ans = 'Yes'
    for i, c in enumerate(S):
        if not i % 2 and c not in odd:
            ans = 'No'
        elif i % 2 and c not in even:
            ans = 'No'
    
    print(ans)
    return


if __name__ == '__main__':
    main() import sys sys read = sys.stdin.read read sys.stdin.read sys.stdin sys stdin read readline = sys.stdin.readline readline sys.stdin.readline sys.stdin sys stdin readline readlines = sys.stdin.readlines readlines sys.stdin.readlines sys.stdin sys stdin readlines sys.setrecursionlimit(10 ** 9) sys.setrecursionlimit sys setrecursionlimit 10 ** 9 10 9 INF = 1 << 60 INF 1 << 60 1 60 MOD = 1000000007 MOD 1000000007 def main():
    S = readline().strip()
    
    odd = {'R', 'U', 'D'}
    even = {'L', 'U', 'D'}
    
    ans = 'Yes'
    for i, c in enumerate(S):
        if not i % 2 and c not in odd:
            ans = 'No'
        elif i % 2 and c not in even:
            ans = 'No'
    
    print(ans)
    return main S = readline().strip() S readline().strip() ().strip () readline strip odd = {'R', 'U', 'D'} odd {'R', 'U', 'D'} even = {'L', 'U', 'D'} even {'L', 'U', 'D'} ans = 'Yes' ans 'Yes' for i, c in enumerate(S):
        if not i % 2 and c not in odd:
            ans = 'No'
        elif i % 2 and c not in even:
            ans = 'No'
    
     i c enumerate(S) enumerate S if not i % 2 and c not in odd:
            ans = 'No'
        elif i % 2 and c not in even:
            ans = 'No'
    
     not i % 2 and c not in odd not i % 2 i % 2 i 2 c not in odd c odd ans = 'No' ans 'No' elif i % 2 and c not in even:
            ans = 'No'
    
     i % 2 and c not in even i % 2 i 2 c not in even c even ans = 'No' ans 'No' print(ans) print ans return if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main readlines = sys.stdin.readlines sys.stdin.readlines readlines MOD = 1000000007 1000000007 MOD readline = sys.stdin.readline sys.stdin.readline readline INF = 1 << 60 1 << 60 INF read = sys.stdin.read sys.stdin.read read def main():
    S = readline().strip()
    
    odd = {'R', 'U', 'D'}
    even = {'L', 'U', 'D'}
    
    ans = 'Yes'
    for i, c in enumerate(S):
        if not i % 2 and c not in odd:
            ans = 'No'
        elif i % 2 and c not in even:
            ans = 'No'
    
    print(ans)
    return def main():
    S = readline().strip()
    
    odd = {'R', 'U', 'D'}
    even = {'L', 'U', 'D'}
    
    ans = 'Yes'
    for i, c in enumerate(S):
        if not i % 2 and c not in odd:
            ans = 'No'
        elif i % 2 and c not in even:
            ans = 'No'
    
    print(ans)
    return main
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()
    
    odd = {'R', 'U', 'D'}
    even = {'L', 'U', 'D'}
    
    ans = 'Yes'
    for i, c in enumerate(S):
        if not i % 2 and c not in odd:
            ans = 'No'
        elif i % 2 and c not in even:
            ans = 'No'
    
    print(ans)
    return


if __name__ == '__main__':
    main()
