import sys


# input = sys.stdin.readline

def main():
    S = input()
    count =1
    for i in S:
        if count %2==1 and i =="L":
            print("No")
            exit()
        elif count%2 ==0 and i =="R":
            print("No")
            exit()

        count+=1
    print("Yes")





if __name__ == "__main__":
    main() import sys sys def main():
    S = input()
    count =1
    for i in S:
        if count %2==1 and i =="L":
            print("No")
            exit()
        elif count%2 ==0 and i =="R":
            print("No")
            exit()

        count+=1
    print("Yes") main S = input() S input() input count =1 count 1 for i in S:
        if count %2==1 and i =="L":
            print("No")
            exit()
        elif count%2 ==0 and i =="R":
            print("No")
            exit()

        count+=1
     i S if count %2==1 and i =="L":
            print("No")
            exit()
        elif count%2 ==0 and i =="R":
            print("No")
            exit()

         count %2==1 and i =="L" count %2==1 count %2 count 2 1 i =="L" i "L" print("No") print "No" exit() exit elif count%2 ==0 and i =="R":
            print("No")
            exit()

         count%2 ==0 and i =="R" count%2 ==0 count%2 count 2 0 i =="R" i "R" print("No") print "No" exit() exit count+=1 count 1 print("Yes") print "Yes" if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    S = input()
    count =1
    for i in S:
        if count %2==1 and i =="L":
            print("No")
            exit()
        elif count%2 ==0 and i =="R":
            print("No")
            exit()

        count+=1
    print("Yes") def main():
    S = input()
    count =1
    for i in S:
        if count %2==1 and i =="L":
            print("No")
            exit()
        elif count%2 ==0 and i =="R":
            print("No")
            exit()

        count+=1
    print("Yes") main
import sys


# input = sys.stdin.readline

def main():
    S = input()
    count =1
    for i in S:
        if count %2==1 and i =="L":
            print("No")
            exit()
        elif count%2 ==0 and i =="R":
            print("No")
            exit()

        count+=1
    print("Yes")





if __name__ == "__main__":
    main()