def resolve():
    S = input()
    for i, c in enumerate(list(S)):
        if i%2==0:
            if c == "L":
                print("No")
                return
        else:
            if c == "R":
                print("No")
                return
    print("Yes")

if '__main__' == __name__:
    resolve() def resolve():
    S = input()
    for i, c in enumerate(list(S)):
        if i%2==0:
            if c == "L":
                print("No")
                return
        else:
            if c == "R":
                print("No")
                return
    print("Yes") resolve S = input() S input() input for i, c in enumerate(list(S)):
        if i%2==0:
            if c == "L":
                print("No")
                return
        else:
            if c == "R":
                print("No")
                return
     i c enumerate(list(S)) enumerate list(S) list S if i%2==0:
            if c == "L":
                print("No")
                return
        else:
            if c == "R":
                print("No")
                return
     i%2==0 i%2 i 2 0 if c == "L":
                print("No")
                return
         c == "L" c "L" print("No") print "No" return if c == "R":
                print("No")
                return
     c == "R" c "R" print("No") print "No" return print("Yes") print "Yes" if '__main__' == __name__:
    resolve() '__main__' == __name__ '__main__' __name__ resolve() resolve def resolve():
    S = input()
    for i, c in enumerate(list(S)):
        if i%2==0:
            if c == "L":
                print("No")
                return
        else:
            if c == "R":
                print("No")
                return
    print("Yes") def resolve():
    S = input()
    for i, c in enumerate(list(S)):
        if i%2==0:
            if c == "L":
                print("No")
                return
        else:
            if c == "R":
                print("No")
                return
    print("Yes") resolve
def resolve():
    S = input()
    for i, c in enumerate(list(S)):
        if i%2==0:
            if c == "L":
                print("No")
                return
        else:
            if c == "R":
                print("No")
                return
    print("Yes")

if '__main__' == __name__:
    resolve()