def main():
  s=input()
  flg=0
  for i in range(0,len(s)):
    if i%2==1:
      if s[i]=='R':
        flg=1
        break
    else:
      if s[i]=='L':
        flg=1
        break
  if(flg==1):
    print('No')
  else:
    print('Yes')
    
main() def main():
  s=input()
  flg=0
  for i in range(0,len(s)):
    if i%2==1:
      if s[i]=='R':
        flg=1
        break
    else:
      if s[i]=='L':
        flg=1
        break
  if(flg==1):
    print('No')
  else:
    print('Yes')
     main s=input() s input() input flg=0 flg 0 for i in range(0,len(s)):
    if i%2==1:
      if s[i]=='R':
        flg=1
        break
    else:
      if s[i]=='L':
        flg=1
        break
   i range(0,len(s)) range 0 len(s) len s if i%2==1:
      if s[i]=='R':
        flg=1
        break
    else:
      if s[i]=='L':
        flg=1
        break
   i%2==1 i%2 i 2 1 if s[i]=='R':
        flg=1
        break
     s[i]=='R' s[i] s i 'R' flg=1 flg 1 break if s[i]=='L':
        flg=1
        break
   s[i]=='L' s[i] s i 'L' flg=1 flg 1 break if(flg==1):
    print('No')
  else:
    print('Yes')
     flg==1 flg 1 print('No') print 'No' print('Yes') print 'Yes' main() main def main():
  s=input()
  flg=0
  for i in range(0,len(s)):
    if i%2==1:
      if s[i]=='R':
        flg=1
        break
    else:
      if s[i]=='L':
        flg=1
        break
  if(flg==1):
    print('No')
  else:
    print('Yes')
     def main():
  s=input()
  flg=0
  for i in range(0,len(s)):
    if i%2==1:
      if s[i]=='R':
        flg=1
        break
    else:
      if s[i]=='L':
        flg=1
        break
  if(flg==1):
    print('No')
  else:
    print('Yes')
     main
def main():
  s=input()
  flg=0
  for i in range(0,len(s)):
    if i%2==1:
      if s[i]=='R':
        flg=1
        break
    else:
      if s[i]=='L':
        flg=1
        break
  if(flg==1):
    print('No')
  else:
    print('Yes')
    
main()