s=input();print('No'if [1 for i in s[::2] if i=='L'] or [1 for i in s[1::2] if i=='R'] else'Yes') 1 for i in s[::2] if i=='L' for i in s[::2] if i=='L' i s[::2] s ::2 2 i=='L' i 'L' if i=='L' 1 s=input() s input() input print('No'if [1 for i in s[::2] if i=='L'] or [1 for i in s[1::2] if i=='R'] else'Yes') print 'No'if [1 for i in s[::2] if i=='L'] or [1 for i in s[1::2] if i=='R'] else'Yes' [1 for i in s[::2] if i=='L'] or [1 for i in s[1::2] if i=='R'] [1 for i in s[::2] if i=='L'] [1 for i in s[1::2] if i=='R'] 'No' 'Yes' s=input() input() s
s=input();print('No'if [1 for i in s[::2] if i=='L'] or [1 for i in s[1::2] if i=='R'] else'Yes')