S=input()
count=0
Ans=True
for i in range(len(S)):
    if i%2==1 and S[i]=="R":
        Ans=False
    elif i%2==0 and S[i]=="L": 
        Ans=False
if Ans==True:
    print("Yes")
else:
    print("No") S=input() S input() input count=0 count 0 Ans=True Ans True for i in range(len(S)):
    if i%2==1 and S[i]=="R":
        Ans=False
    elif i%2==0 and S[i]=="L": 
        Ans=False i range(len(S)) range len(S) len S if i%2==1 and S[i]=="R":
        Ans=False
    elif i%2==0 and S[i]=="L": 
        Ans=False i%2==1 and S[i]=="R" i%2==1 i%2 i 2 1 S[i]=="R" S[i] S i "R" Ans=False Ans False elif i%2==0 and S[i]=="L": 
        Ans=False i%2==0 and S[i]=="L" i%2==0 i%2 i 2 0 S[i]=="L" S[i] S i "L" Ans=False Ans False if Ans==True:
    print("Yes")
else:
    print("No") Ans==True Ans True print("Yes") print "Yes" print("No") print "No" Ans=False False Ans count=0 0 count Ans=False False Ans Ans=True True Ans S=input() input() S
S=input()
count=0
Ans=True
for i in range(len(S)):
    if i%2==1 and S[i]=="R":
        Ans=False
    elif i%2==0 and S[i]=="L": 
        Ans=False
if Ans==True:
    print("Yes")
else:
    print("No")