import sys

S = input()

def check():
  for i in range(len(S)) :
    if i%2!=0 and S[i]=="R" :
      print("No")
      sys.exit(0)
    elif i%2==0 and S[i]=="L" :
      print("No")
      sys.exit(0)
check()
print("Yes")
sys.exit(0)
85f0a49af9862ae3f0fa2c80007bfb119a1e238a
<mask token>


def check():
    for i in range(len(S)):
        if i % 2 != 0 and S[i] == 'R':
            print('No')
            sys.exit(0)
        elif i % 2 == 0 and S[i] == 'L':
            print('No')
            sys.exit(0)


<mask token>

<mask token>


def check():
    for i in range(len(S)):
        if i % 2 != 0 and S[i] == 'R':
            print('No')
            sys.exit(0)
        elif i % 2 == 0 and S[i] == 'L':
            print('No')
            sys.exit(0)


check()
print('Yes')
sys.exit(0)

<mask token>
S = input()


def check():
    for i in range(len(S)):
        if i % 2 != 0 and S[i] == 'R':
            print('No')
            sys.exit(0)
        elif i % 2 == 0 and S[i] == 'L':
            print('No')
            sys.exit(0)


check()
print('Yes')
sys.exit(0)

import sys
S = input()


def check():
    for i in range(len(S)):
        if i % 2 != 0 and S[i] == 'R':
            print('No')
            sys.exit(0)
        elif i % 2 == 0 and S[i] == 'L':
            print('No')
            sys.exit(0)


check()
print('Yes')
sys.exit(0)

import sys

S = input()

def check():
  for i in range(len(S)) :
    if i%2!=0 and S[i]=="R" :
      print("No")
      sys.exit(0)
    elif i%2==0 and S[i]=="L" :
      print("No")
      sys.exit(0)
check()
print("Yes")
sys.exit(0)