import sys
S = input()
n = len(S)
for i in range(n):
  if ((i+1) % 2 != 0 and S[i] == 'L') or ((i+1) % 2 == 0 and S[i] == 'R'):
    print('No')
    sys.exit()
print('Yes') import sys sys S = input() S input() input n = len(S) n len(S) len S for i in range(n):
  if ((i+1) % 2 != 0 and S[i] == 'L') or ((i+1) % 2 == 0 and S[i] == 'R'):
    print('No')
    sys.exit() i range(n) range n if ((i+1) % 2 != 0 and S[i] == 'L') or ((i+1) % 2 == 0 and S[i] == 'R'):
    print('No')
    sys.exit() ((i+1) % 2 != 0 and S[i] == 'L') or ((i+1) % 2 == 0 and S[i] == 'R') (i+1) % 2 != 0 and S[i] == 'L' (i+1) % 2 != 0 (i+1) % 2 i+1 i 1 2 0 S[i] == 'L' S[i] S i 'L' (i+1) % 2 == 0 and S[i] == 'R' (i+1) % 2 == 0 (i+1) % 2 i+1 i 1 2 0 S[i] == 'R' S[i] S i 'R' print('No') print 'No' sys.exit() sys.exit sys exit print('Yes') print 'Yes' n = len(S) len(S) n S = input() input() S
import sys
S = input()
n = len(S)
for i in range(n):
  if ((i+1) % 2 != 0 and S[i] == 'L') or ((i+1) % 2 == 0 and S[i] == 'R'):
    print('No')
    sys.exit()
print('Yes')